torque Torque Game Engine Documentation
TGE Version 1.5.2

TagDictionary Class Reference

#include <tagDictionary.h>


Public Member Functions

 TagDictionary ()
 ~TagDictionary ()
bool writeHeader (Stream &)
bool addEntry (S32 value, StringTableEntry define, StringTableEntry string)
StringTableEntry defineToString (StringTableEntry tag)
StringTableEntry idToString (S32 tag)
StringTableEntry idToDefine (S32 tag)
S32 defineToId (StringTableEntry tag)
void findIDs (Vector< S32 > &v, const S32 minID, const S32 maxID)
void findStrings (Vector< S32 > &v, const char *pattern)
void findDefines (Vector< S32 > &v, const char *pattern)

Private Member Functions

bool match (const char *pattern, const char *str)
void sortIdVector (Vector< S32 > &out_v)

Private Attributes

TagEntry ** defineHashBuckets
TagEntry ** idHashBuckets
TagEntryentryChain
DataChunker mempool
S32 numBuckets
S32 numEntries

Data Structures

struct  TagEntry


Constructor & Destructor Documentation

TagDictionary::TagDictionary (  ) 

TagDictionary::~TagDictionary (  ) 


Member Function Documentation

bool TagDictionary::match ( const char *  pattern,
const char *  str 
) [private]

void TagDictionary::sortIdVector ( Vector< S32 > &  out_v  )  [private]

bool TagDictionary::writeHeader ( Stream  ) 

bool TagDictionary::addEntry ( S32  value,
StringTableEntry  define,
StringTableEntry  string 
)

StringTableEntry TagDictionary::defineToString ( StringTableEntry  tag  ) 

StringTableEntry TagDictionary::idToString ( S32  tag  ) 

StringTableEntry TagDictionary::idToDefine ( S32  tag  ) 

S32 TagDictionary::defineToId ( StringTableEntry  tag  ) 

void TagDictionary::findIDs ( Vector< S32 > &  v,
const S32  minID,
const S32  maxID 
)

void TagDictionary::findStrings ( Vector< S32 > &  v,
const char *  pattern 
)

void TagDictionary::findDefines ( Vector< S32 > &  v,
const char *  pattern 
)


Field Documentation




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