#include <bsEmitterDefinition.h>
Classes | |
struct | Function |
Function compile information. More... | |
Public Member Functions | |
EmitterDefinition (const String &name) | |
Constructor. | |
void | _setIndex (int index) |
Set index. | |
int | _getIndex () const |
Get index. | |
Function & | addFunction (const String &name, ParseTreeNode *node) |
Add a function definition. | |
Function & | getFunction (int index) |
Get a function definition. | |
int | getFunctionIndex (const String &name) const |
Get a function definition index. | |
int | getNumFunctions () const |
Gets the number of function definitions in this EmitterDefinition. |
EmitterDefinitions are created from scripts, and contain the information needed to set up Emitter.
BS_NMSP::EmitterDefinition::EmitterDefinition | ( | const String & | name | ) | [explicit] |
Constructor.
name | name of the definition, generally set from script. |
int BS_NMSP::EmitterDefinition::_getIndex | ( | ) | const |
Get index.
This is an internal method used by code generation.
void BS_NMSP::EmitterDefinition::_setIndex | ( | int | index | ) |
Function& BS_NMSP::EmitterDefinition::addFunction | ( | const String & | name, | |
ParseTreeNode * | node | |||
) |
Add a function definition.
name | name of the function. | |
node | a pointer to the ParseTreeNode, for quick access during code generation. |
Function& BS_NMSP::EmitterDefinition::getFunction | ( | int | index | ) |
Get a function definition.
index | index of the function. |
int BS_NMSP::EmitterDefinition::getFunctionIndex | ( | const String & | name | ) | const |
Get a function definition index.
This is used in conjunction with getFunction to retrieve a function definition by name.
name | name of the function. |
int BS_NMSP::EmitterDefinition::getNumFunctions | ( | ) | const |
Gets the number of function definitions in this EmitterDefinition.