Torque2D Reference
Loading...
Searching...
No Matches
ExprEvalState Class Reference

#include <consoleExprEvalState.h>

Expression Evaluation

SimObjectthisObject
Dictionary::EntrycurrentVariable
bool traceOn
bool editorModeOn
 ExprEvalState ()
 ~ExprEvalState ()

Stack Management

Dictionary globalVars
Vector< Dictionary * > stack
void setCurVarName (StringTableEntry name)
void setCurVarNameCreate (StringTableEntry name)
S32 getIntVariable ()
F64 getFloatVariable ()
const char * getStringVariable ()
void setIntVariable (S32 val)
void setFloatVariable (F64 val)
void setStringVariable (const char *str)
void pushFrame (StringTableEntry frameName, Namespace *ns)
void popFrame ()
void pushFrameRef (S32 stackIndex)

Constructor & Destructor Documentation

◆ ExprEvalState()

◆ ~ExprEvalState()

Member Function Documentation

◆ getFloatVariable()

F64 getFloatVariable ( )
inline

◆ getIntVariable()

S32 getIntVariable ( )
inline

◆ getStringVariable()

const char * getStringVariable ( )
inline

◆ popFrame()

void popFrame ( )

◆ pushFrame()

void pushFrame ( StringTableEntry frameName,
Namespace * ns )

◆ pushFrameRef()

void pushFrameRef ( S32 stackIndex)

Puts a reference to an existing stack frame on the top of the stack.

◆ setCurVarName()

void setCurVarName ( StringTableEntry name)
inline

◆ setCurVarNameCreate()

void setCurVarNameCreate ( StringTableEntry name)
inline

◆ setFloatVariable()

void setFloatVariable ( F64 val)
inline

◆ setIntVariable()

void setIntVariable ( S32 val)
inline

◆ setStringVariable()

void setStringVariable ( const char * str)
inline

Member Data Documentation

◆ currentVariable

Dictionary::Entry* currentVariable

◆ editorModeOn

bool editorModeOn

◆ globalVars

Dictionary globalVars

◆ stack

Vector<Dictionary *> stack

◆ thisObject

SimObject* thisObject

◆ traceOn

bool traceOn

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