torque Torque Game Engine Documentation
TGE Version 1.5.2

Dictionary Class Reference

#include <consoleInternal.h>


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)
 Return the best tab completion for prevText, with the length of the pre-tab string in baseLen.

Data Fields

StringTableEntry scopeName
NamespacescopeNamespace
CodeBlockcode
U32 ip

Private Attributes

HashTableDatahashTable
ExprEvalStateexprState

Data Structures

struct  Entry
struct  HashTableData


Constructor & Destructor Documentation

Dictionary::Dictionary (  ) 

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

Dictionary::~Dictionary (  ) 


Member Function Documentation

Entry* Dictionary::lookup ( StringTableEntry  name  ) 

Entry* Dictionary::add ( StringTableEntry  name  ) 

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

void Dictionary::remove ( Entry  ) 

void Dictionary::reset (  ) 

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

void Dictionary::deleteVariables ( const char *  varString  ) 

void Dictionary::setVariable ( StringTableEntry  name,
const char *  value 
)

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

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

bool Dictionary::removeVariable ( StringTableEntry  name  ) 

const char* Dictionary::tabComplete ( const char *  prevText,
S32  baseLen,
bool   
)

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


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen