SimFieldDictionary Class Reference#include <simFieldDictionary.h>
List of all members.
Detailed Description
Dictionary to keep track of dynamic fields on SimObject.
|
Public Member Functions |
const U32 | getVersion () const |
| SimFieldDictionary () |
| ~SimFieldDictionary () |
void | setFieldType (StringTableEntry slotName, const char *typeString) |
void | setFieldType (StringTableEntry slotName, const U32 typeId) |
void | setFieldType (StringTableEntry slotName, ConsoleBaseType *type) |
void | setFieldValue (StringTableEntry slotName, const char *value) |
const char * | getFieldValue (StringTableEntry slotName) |
U32 | getFieldType (StringTableEntry slotName) const |
Entry * | findDynamicField (const String &fieldName) const |
void | writeFields (SimObject *obj, Stream &strem, U32 tabStop) |
void | printFields (SimObject *obj) |
void | assignFrom (SimFieldDictionary *dict) |
U32 | getNumFields () const |
Entry * | operator[] (U32 index) |
Private Types |
| HashTableSize = 19 |
enum | { HashTableSize = 19
} |
Private Member Functions |
void | freeEntry (Entry *entry) |
Entry * | addEntry (U32 bucket, StringTableEntry slotName, ConsoleBaseType *type, char *value=0) |
Static Private Member Functions |
static U32 | getHashValue (StringTableEntry slotName) |
static U32 | getHashValue (const String &fieldName) |
Private Attributes |
Entry * | mHashTable [HashTableSize] |
U32 | mNumFields |
U32 | mVersion |
| In order to efficiently detect when a dynamic field has been added or deleted, we increment this every time we add or remove a field.
|
Static Private Attributes |
static Entry * | smFreeList |
Friends |
class | SimFieldDictionaryIterator |
Classes |
struct | Entry |
Member Enumeration Documentation
Constructor & Destructor Documentation
SimFieldDictionary::SimFieldDictionary |
( |
|
) |
|
SimFieldDictionary::~SimFieldDictionary |
( |
|
) |
|
Member Function Documentation
void SimFieldDictionary::freeEntry |
( |
Entry * |
entry |
) |
[private] |
static U32 SimFieldDictionary::getHashValue |
( |
const String & |
fieldName |
) |
[static, private] |
const U32 SimFieldDictionary::getVersion |
( |
|
) |
const [inline] |
Entry* SimFieldDictionary::findDynamicField |
( |
const String & |
fieldName |
) |
const |
U32 SimFieldDictionary::getNumFields |
( |
|
) |
const [inline] |
Entry* SimFieldDictionary::operator[] |
( |
U32 |
index |
) |
|
Friends And Related Function Documentation
Member Data Documentation
In order to efficiently detect when a dynamic field has been added or deleted, we increment this every time we add or remove a field.
|