OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::GLSL::CPreprocessor::Macro Class Reference

A macro definition. More...

+ Collaboration diagram for Ogre::GLSL::CPreprocessor::Macro:

Public Member Functions

 Macro (const Token &iName)
 
 ~Macro ()
 
Token Expand (int iNumArgs, Token *iArgs, Macro *iMacros)
 Expand the macro value (will not work for functions) More...
 

Public Attributes

TokenArgs
 The names of the arguments. More...
 
Token Body
 Unparsed macro body (keeps the whole raw unparsed macro body) More...
 
Token(* ExpandFunc )(CPreprocessor *iParent, int iNumArgs, Token *iArgs)
 A pointer to function implementation (if macro is really a func) More...
 
bool Expanding
 true if macro expansion is in progress More...
 
Token Name
 Macro name. More...
 
MacroNext
 Next macro in chained list. More...
 
int NumArgs
 Number of arguments. More...
 
Token Value
 The macro value. More...
 

Detailed Description

A macro definition.

Definition at line 173 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Constructor & Destructor Documentation

Ogre::GLSL::CPreprocessor::Macro::Macro ( const Token iName)
inline

Definition at line 193 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Ogre::GLSL::CPreprocessor::Macro::~Macro ( )
inline

Definition at line 198 of file src/GLSL/include/OgreGLSLPreprocessor.h.

References Args, and Next.

Member Function Documentation

Token Ogre::GLSL::CPreprocessor::Macro::Expand ( int  iNumArgs,
Token iArgs,
Macro iMacros 
)

Expand the macro value (will not work for functions)

Member Data Documentation

Token* Ogre::GLSL::CPreprocessor::Macro::Args

The names of the arguments.

Definition at line 181 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Referenced by ~Macro().

Token Ogre::GLSL::CPreprocessor::Macro::Body

Unparsed macro body (keeps the whole raw unparsed macro body)

Definition at line 185 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Token(* Ogre::GLSL::CPreprocessor::Macro::ExpandFunc)(CPreprocessor *iParent, int iNumArgs, Token *iArgs)

A pointer to function implementation (if macro is really a func)

Definition at line 189 of file src/GLSL/include/OgreGLSLPreprocessor.h.

bool Ogre::GLSL::CPreprocessor::Macro::Expanding

true if macro expansion is in progress

Definition at line 191 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Token Ogre::GLSL::CPreprocessor::Macro::Name

Macro name.

Definition at line 177 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Macro* Ogre::GLSL::CPreprocessor::Macro::Next

Next macro in chained list.

Definition at line 187 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Referenced by ~Macro().

int Ogre::GLSL::CPreprocessor::Macro::NumArgs

Number of arguments.

Definition at line 179 of file src/GLSL/include/OgreGLSLPreprocessor.h.

Token Ogre::GLSL::CPreprocessor::Macro::Value

The macro value.

Definition at line 183 of file src/GLSL/include/OgreGLSLPreprocessor.h.


The documentation for this class was generated from the following file: