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

#include <consoleDictionary.h>

Classes

struct  Entry

Public Member Functions

 Dictionary ()
 Dictionary (ExprEvalState *state, Dictionary *ref=NULL)
 ~Dictionary ()
Entrylookup (StringTableEntry name)
Entryadd (StringTableEntry name)
void setState (ExprEvalState *state, Dictionary *ref=NULL)
void remove (Entry *)
void reset ()
void exportVariables (const char *varString, const char *fileName, bool append)
void deleteVariables (const char *varString)
void setVariable (StringTableEntry name, const char *value)
const char * getVariable (StringTableEntry name, bool *valid=NULL)
void addVariable (const char *name, S32 type, void *dataPtr)
bool removeVariable (StringTableEntry name)
const char * tabComplete (const char *prevText, S32 baseLen, bool)

Public Attributes

StringTableEntry scopeName
NamespacescopeNamespace
CodeBlockcode
U32 ip

Constructor & Destructor Documentation

◆ Dictionary() [1/2]

◆ Dictionary() [2/2]

Dictionary ( ExprEvalState * state,
Dictionary * ref = NULL )

◆ ~Dictionary()

~Dictionary ( )

Member Function Documentation

◆ add()

Dictionary::Entry * add ( StringTableEntry name)

◆ addVariable()

void addVariable ( const char * name,
S32 type,
void * dataPtr )

◆ deleteVariables()

void deleteVariables ( const char * varString)

◆ exportVariables()

void exportVariables ( const char * varString,
const char * fileName,
bool append )

◆ getVariable()

const char * getVariable ( StringTableEntry name,
bool * valid = NULL )

◆ lookup()

Dictionary::Entry * lookup ( StringTableEntry name)

◆ remove()

void remove ( Dictionary::Entry * ent)

◆ removeVariable()

bool removeVariable ( StringTableEntry name)

◆ reset()

void reset ( )

◆ setState()

void setState ( ExprEvalState * state,
Dictionary * ref = NULL )

◆ setVariable()

void setVariable ( StringTableEntry name,
const char * value )

◆ tabComplete()

const char * tabComplete ( const char * prevText,
S32 baseLen,
bool fForward )

Return the best tab completion for prevText, with the length of the pre-tab string in baseLen.

Member Data Documentation

◆ code

CodeBlock* code

◆ ip

U32 ip

◆ scopeName

StringTableEntry scopeName

◆ scopeNamespace

Namespace* scopeNamespace

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