torque Torque Game Engine Documentation
TGE Version 1.5.2

SimFieldDictionary Class Reference

#include <simBase.h>


Detailed Description

Dictionary to keep track of dynamic fields on SimObject.


Public Member Functions

const U32 getVersion () const
 SimFieldDictionary ()
 ~SimFieldDictionary ()
void setFieldValue (StringTableEntry slotName, const char *value)
const char * getFieldValue (StringTableEntry slotName)
void writeFields (SimObject *obj, Stream &strem, U32 tabStop)
void printFields (SimObject *obj)
void assignFrom (SimFieldDictionary *dict)

Private Types

enum  { HashTableSize = 19 }

Static Private Member Functions

static void freeEntry (Entry *entry)
static EntryallocEntry ()

Private Attributes

EntrymHashTable [HashTableSize]
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 EntrymFreeList

Friends

class SimFieldDictionaryIterator

Data Structures

struct  Entry


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
HashTableSize 


Constructor & Destructor Documentation

SimFieldDictionary::SimFieldDictionary (  ) 

SimFieldDictionary::~SimFieldDictionary (  ) 


Member Function Documentation

static void SimFieldDictionary::freeEntry ( Entry entry  )  [static, private]

static Entry* SimFieldDictionary::allocEntry (  )  [static, private]

const U32 SimFieldDictionary::getVersion (  )  const [inline]

void SimFieldDictionary::setFieldValue ( StringTableEntry  slotName,
const char *  value 
)

const char* SimFieldDictionary::getFieldValue ( StringTableEntry  slotName  ) 

void SimFieldDictionary::writeFields ( SimObject obj,
Stream strem,
U32  tabStop 
)

void SimFieldDictionary::printFields ( SimObject obj  ) 

void SimFieldDictionary::assignFrom ( SimFieldDictionary dict  ) 


Friends And Related Function Documentation

friend class SimFieldDictionaryIterator [friend]


Field Documentation

Entry* SimFieldDictionary::mHashTable[HashTableSize] [private]

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.




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