LLStringTable Class Reference

#include <llstringtable.h>

Collaboration diagram for LLStringTable:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::list< LLStringTableEntry * > string_list_t
typedef string_list_tstring_list_ptr_t

Public Member Functions

 LLStringTable (int tablesize)
 ~LLStringTable ()
char * checkString (const char *str)
char * checkString (const std::string &str)
LLStringTableEntrycheckStringEntry (const char *str)
LLStringTableEntrycheckStringEntry (const std::string &str)
char * addString (const char *str)
char * addString (const std::string &str)
LLStringTableEntryaddStringEntry (const char *str)
LLStringTableEntryaddStringEntry (const std::string &str)
void removeString (const char *str)

Public Attributes

S32 mMaxEntries
S32 mUniqueEntries
string_list_ptr_tmStringList

Detailed Description

Definition at line 83 of file llstringtable.h.


Member Typedef Documentation

typedef string_list_t* LLStringTable::string_list_ptr_t

Definition at line 112 of file llstringtable.h.

typedef std::list<LLStringTableEntry *> LLStringTable::string_list_t

Definition at line 111 of file llstringtable.h.


Constructor & Destructor Documentation

LLStringTable::LLStringTable ( int  tablesize  ) 

Definition at line 40 of file llstringtable.cpp.

References i, mMaxEntries, mStringList, NULL, and S32.

LLStringTable::~LLStringTable (  ) 

Definition at line 71 of file llstringtable.cpp.

References i, mMaxEntries, mStringList, NULL, and S32.


Member Function Documentation

char * LLStringTable::addString ( const std::string &  str  ) 

Definition at line 187 of file llstringtable.cpp.

References addString().

char * LLStringTable::addString ( const char *  str  ) 

Definition at line 193 of file llstringtable.cpp.

References addStringEntry(), LLStringTableEntry::mString, and NULL.

Referenced by add_use_callback(), LLScriptScope::addEntry(), LLNameTable< DATA >::addEntry(), LLScriptJumpTable::addJump(), LLScriptJumpTable::addLabel(), addString(), LLCharacter::addVisualParam(), LLScriptScope::checkEntry(), LLNameTable< DATA >::checkName(), LLScriptScope::findEntry(), LLScriptScope::findEntryTyped(), LLTexStaticImageList::getImageGL(), LLTexStaticImageList::getImageTGA(), LLViewerObject::getNVPair(), LLNameValue::init(), LLAnimationLibrary::LLAnimationLibrary(), LLNameValue::LLNameValue(), LLViewerObject::removeNVPair(), and LLNameTable< DATA >::resolveName().

LLStringTableEntry * LLStringTable::addStringEntry ( const std::string &  str  ) 

Definition at line 207 of file llstringtable.cpp.

References addStringEntry().

LLStringTableEntry * LLStringTable::addStringEntry ( const char *  str  ) 

Definition at line 212 of file llstringtable.cpp.

References hash_my_string(), LLStringTableEntry::incCount(), MAX_STRINGS_LENGTH, mMaxEntries, LLStringTableEntry::mString, mStringList, mUniqueEntries, and NULL.

Referenced by addString(), addStringEntry(), LLXMLNode::createChild(), LLXMLNode::LLXMLNode(), and LLXMLNode::setName().

char * LLStringTable::checkString ( const std::string &  str  ) 

Definition at line 119 of file llstringtable.cpp.

References checkString().

char * LLStringTable::checkString ( const char *  str  ) 

Definition at line 124 of file llstringtable.cpp.

References checkStringEntry(), LLStringTableEntry::mString, and NULL.

Referenced by checkString(), LLCharacter::getVisualParam(), LLCharacter::getVisualParamWeight(), LLCharacter::setVisualParamWeight(), and LLAnimationLibrary::stringToAnimState().

LLStringTableEntry * LLStringTable::checkStringEntry ( const std::string &  str  ) 

Definition at line 137 of file llstringtable.cpp.

References checkStringEntry().

LLStringTableEntry * LLStringTable::checkStringEntry ( const char *  str  ) 

Definition at line 142 of file llstringtable.cpp.

References hash_my_string(), MAX_STRINGS_LENGTH, mMaxEntries, LLStringTableEntry::mString, mStringList, and NULL.

Referenced by checkString(), checkStringEntry(), LLXMLNode::findName(), LLXMLNode::getAttribute(), LLXMLNode::getChild(), LLXMLNode::getChildren(), LLXMLNode::hasName(), and LLXMLNode::setAttributeString().

void LLStringTable::removeString ( const char *  str  ) 

Definition at line 280 of file llstringtable.cpp.

References LLStringTableEntry::decCount(), hash_my_string(), llerror, MAX_STRINGS_LENGTH, mMaxEntries, LLStringTableEntry::mString, mStringList, and mUniqueEntries.

Referenced by LLNameValue::~LLNameValue().


Member Data Documentation

S32 LLStringTable::mMaxEntries

Definition at line 100 of file llstringtable.h.

Referenced by addStringEntry(), checkStringEntry(), LLStringTable(), removeString(), and ~LLStringTable().

string_list_ptr_t* LLStringTable::mStringList

Definition at line 113 of file llstringtable.h.

Referenced by addStringEntry(), checkStringEntry(), LLStringTable(), removeString(), and ~LLStringTable().

S32 LLStringTable::mUniqueEntries

Definition at line 101 of file llstringtable.h.

Referenced by addStringEntry(), and removeString().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:49 2010 for Second Life Viewer by  doxygen 1.4.7