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

A macro definition. More...

+ Collaboration diagram for Ogre::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 172 of file OgreGLSLPreprocessor.h.

Constructor & Destructor Documentation

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

Definition at line 192 of file OgreGLSLPreprocessor.h.

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

Definition at line 197 of file OgreGLSLPreprocessor.h.

References Args, and Next.

Member Function Documentation

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

Expand the macro value (will not work for functions)

Member Data Documentation

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

The names of the arguments.

Definition at line 180 of file OgreGLSLPreprocessor.h.

Referenced by ~Macro().

Token Ogre::CPreprocessor::Macro::Body

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

Definition at line 184 of file OgreGLSLPreprocessor.h.

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

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

Definition at line 188 of file OgreGLSLPreprocessor.h.

bool Ogre::CPreprocessor::Macro::Expanding

true if macro expansion is in progress

Definition at line 190 of file OgreGLSLPreprocessor.h.

Token Ogre::CPreprocessor::Macro::Name

Macro name.

Definition at line 176 of file OgreGLSLPreprocessor.h.

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

Next macro in chained list.

Definition at line 186 of file OgreGLSLPreprocessor.h.

Referenced by ~Macro().

int Ogre::CPreprocessor::Macro::NumArgs

Number of arguments.

Definition at line 178 of file OgreGLSLPreprocessor.h.

Token Ogre::CPreprocessor::Macro::Value

The macro value.

Definition at line 182 of file OgreGLSLPreprocessor.h.


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