LLStdStringTable Class Reference

#include <llstringtable.h>

Collaboration diagram for LLStdStringTable:

Collaboration graph
List of all members.

Public Member Functions

 LLStdStringTable (S32 tablesize=0)
 ~LLStdStringTable ()
void cleanup ()
LLStdStringHandle lookup (const std::string &s)
LLStdStringHandle checkString (const std::string &s)
LLStdStringHandle insert (const std::string &s)
LLStdStringHandle addString (const std::string &s)

Private Types

typedef std::set< LLStdStringHandle,
std::string > > 

Private Member Functions

U32 makehash (const std::string &s)
LLStdStringHandle lookup (U32 hashval, const std::string &s)

Private Attributes

S32 mTableSize

Detailed Description

Definition at line 127 of file llstringtable.h.

Member Typedef Documentation

typedef std::set<LLStdStringHandle, compare_pointer_contents<std::string> > LLStdStringTable::string_set_t [private]

Definition at line 227 of file llstringtable.h.

Constructor & Destructor Documentation

LLStdStringTable::LLStdStringTable ( S32  tablesize = 0  )  [inline]

Definition at line 130 of file llstringtable.h.

References i, mStringList, mTableSize, and S32.

LLStdStringTable::~LLStdStringTable (  )  [inline]

Definition at line 151 of file llstringtable.h.

References cleanup(), and mStringList.

Member Function Documentation

LLStdStringHandle LLStdStringTable::addString ( const std::string &  s  )  [inline]

Definition at line 193 of file llstringtable.h.

References insert().

Referenced by LLXmlTreeNode::addAttribute(), LLXmlTree::addAttributeString(), LLXmlTreeNode::getAttributeBOOL(), LLXmlTreeNode::getAttributeColor(), LLXmlTreeNode::getAttributeColor4(), LLXmlTreeNode::getAttributeColor4U(), LLXmlTreeNode::getAttributeF32(), LLXmlTreeNode::getAttributeF64(), LLXmlTreeNode::getAttributeQuat(), LLXmlTreeNode::getAttributeS16(), LLXmlTreeNode::getAttributeS32(), LLXmlTreeNode::getAttributeS8(), LLXmlTreeNode::getAttributeString(), LLXmlTreeNode::getAttributeU16(), LLXmlTreeNode::getAttributeU32(), LLXmlTreeNode::getAttributeU8(), LLXmlTreeNode::getAttributeUUID(), LLXmlTreeNode::getAttributeVector3(), LLXmlTreeNode::getAttributeVector3d(), and LLXmlTreeNode::hasAttribute().

LLStdStringHandle LLStdStringTable::checkString ( const std::string &  s  )  [inline]

Definition at line 176 of file llstringtable.h.

References lookup(), and makehash().

Referenced by LLXmlTreeNode::getChildByName().

void LLStdStringTable::cleanup (  )  [inline]

Definition at line 156 of file llstringtable.h.

References i, mStringList, mTableSize, and S32.

Referenced by LLXmlTree::cleanup(), and ~LLStdStringTable().

LLStdStringHandle LLStdStringTable::insert ( const std::string &  s  )  [inline]

Definition at line 182 of file llstringtable.h.

References lookup(), makehash(), mStringList, and NULL.

Referenced by LLXmlTreeNode::addChild(), and addString().

LLStdStringHandle LLStdStringTable::lookup ( U32  hashval,
const std::string &  s 
) [inline, private]

Definition at line 210 of file llstringtable.h.

References mStringList, and NULL.

LLStdStringHandle LLStdStringTable::lookup ( const std::string &  s  )  [inline]

Definition at line 170 of file llstringtable.h.

References makehash().

Referenced by checkString(), and insert().

U32 LLStdStringTable::makehash ( const std::string &  s  )  [inline, private]

Definition at line 199 of file llstringtable.h.

References c, i, mTableSize, and S32.

Referenced by checkString(), insert(), and lookup().

Member Data Documentation

string_set_t* LLStdStringTable::mStringList [private]

Definition at line 228 of file llstringtable.h.

Referenced by cleanup(), insert(), LLStdStringTable(), lookup(), and ~LLStdStringTable().

S32 LLStdStringTable::mTableSize [private]

Definition at line 226 of file llstringtable.h.

Referenced by cleanup(), LLStdStringTable(), and makehash().

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