LLNameTable< DATA > Class Template Reference

#include <llnametable.h>

Collaboration diagram for LLNameTable< DATA >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::map< const char *,
DATA > 
name_map_t
typedef std::map< const char *,
DATA >::iterator 
iter_t
typedef std::map< const char *,
DATA >::const_iterator 
const_iter_t

Public Member Functions

 LLNameTable ()
 ~LLNameTable ()
void addEntry (const std::string &name, DATA data)
void addEntry (const char *name, DATA data)
BOOL checkName (const std::string &name) const
BOOL checkName (const char *name) const
DATA resolveName (const std::string &name) const
DATA resolveName (const char *name) const
const char * resolveData (const DATA &data) const

Public Attributes

name_map_t mNameMap

Detailed Description

template<class DATA>
class LLNameTable< DATA >

Definition at line 40 of file llnametable.h.


Member Typedef Documentation

template<class DATA>
typedef std::map<const char *,DATA>::const_iterator LLNameTable< DATA >::const_iter_t

Definition at line 106 of file llnametable.h.

template<class DATA>
typedef std::map<const char *,DATA>::iterator LLNameTable< DATA >::iter_t

Definition at line 105 of file llnametable.h.

template<class DATA>
typedef std::map<const char *, DATA> LLNameTable< DATA >::name_map_t

Definition at line 104 of file llnametable.h.


Constructor & Destructor Documentation

template<class DATA>
LLNameTable< DATA >::LLNameTable (  )  [inline]

Definition at line 43 of file llnametable.h.

template<class DATA>
LLNameTable< DATA >::~LLNameTable (  )  [inline]

Definition at line 48 of file llnametable.h.


Member Function Documentation

template<class DATA>
void LLNameTable< DATA >::addEntry ( const char *  name,
DATA  data 
) [inline]

Definition at line 57 of file llnametable.h.

References LLStringTable::addString(), gStringTable, and LLNameTable< DATA >::mNameMap.

template<class DATA>
void LLNameTable< DATA >::addEntry ( const std::string &  name,
DATA  data 
) [inline]

Definition at line 52 of file llnametable.h.

template<class DATA>
BOOL LLNameTable< DATA >::checkName ( const char *  name  )  const [inline]

Definition at line 69 of file llnametable.h.

References LLStringTable::addString(), FALSE, gStringTable, LLNameTable< DATA >::mNameMap, and TRUE.

template<class DATA>
BOOL LLNameTable< DATA >::checkName ( const std::string &  name  )  const [inline]

Definition at line 63 of file llnametable.h.

template<class DATA>
const char* LLNameTable< DATA >::resolveData ( const DATA &  data  )  const [inline]

Definition at line 92 of file llnametable.h.

References end, LLNameTable< DATA >::mNameMap, and NULL.

template<class DATA>
DATA LLNameTable< DATA >::resolveName ( const char *  name  )  const [inline]

Definition at line 81 of file llnametable.h.

References LLStringTable::addString(), gStringTable, and LLNameTable< DATA >::mNameMap.

template<class DATA>
DATA LLNameTable< DATA >::resolveName ( const std::string &  name  )  const [inline]

Definition at line 75 of file llnametable.h.


Member Data Documentation

template<class DATA>
name_map_t LLNameTable< DATA >::mNameMap

Definition at line 107 of file llnametable.h.

Referenced by LLNameTable< DATA >::addEntry(), LLNameTable< DATA >::checkName(), LLNameTable< DATA >::resolveData(), and LLNameTable< DATA >::resolveName().


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