#include <bsCore.h>
Public Member Functions | |
CodeRecord (const String &name) | |
Constructor. | |
~CodeRecord () | |
Destructor. | |
const String & | getName () const |
Returns Affector instance name. | |
void | addVariable (const String &name) |
Add a named local variable to this CodeRecord. | |
const String & | getVariable (int index) const |
Get the name of a local variable. | |
int | getVariableIndex (const String &name) const |
Get a local variable index. | |
int | getNumVariables () const |
Get the number of local variables. | |
Public Attributes | |
uint32 * | byteCode |
size_t | byteCodeSize |
JittedFunction | jitFunction |
Bytecode blocks are stored in the ScriptMachine and shared by instances that need it.
BS_NMSP::CodeRecord::CodeRecord | ( | const String & | name | ) | [explicit] |
Constructor.
name | name of record. |
void BS_NMSP::CodeRecord::addVariable | ( | const String & | name | ) |
const String& BS_NMSP::CodeRecord::getName | ( | ) | const |
Returns Affector instance name.
int BS_NMSP::CodeRecord::getNumVariables | ( | ) | const |
Get the number of local variables.
const String& BS_NMSP::CodeRecord::getVariable | ( | int | index | ) | const |
Get the name of a local variable.
index | index of the variable. |
int BS_NMSP::CodeRecord::getVariableIndex | ( | const String & | name | ) | const |
Get a local variable index.
name | name of the local variable. |
uint32* BS_NMSP::CodeRecord::byteCode |
Bytecode array. Public for convenience, however it is for internal use only.
Size of bytecode array. Public for convenience, however it is for internal use only.
JittedFunction BS_NMSP::CodeRecord::jitFunction |
Jitted function, if available.