#include <llnametable.h>
Collaboration diagram for LLNameTable< DATA >:
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 |
Definition at line 40 of file llnametable.h.
typedef std::map<const char *,DATA>::const_iterator LLNameTable< DATA >::const_iter_t |
Definition at line 106 of file llnametable.h.
typedef std::map<const char *,DATA>::iterator LLNameTable< DATA >::iter_t |
Definition at line 105 of file llnametable.h.
typedef std::map<const char *, DATA> LLNameTable< DATA >::name_map_t |
Definition at line 104 of file llnametable.h.
LLNameTable< DATA >::LLNameTable | ( | ) | [inline] |
Definition at line 43 of file llnametable.h.
LLNameTable< DATA >::~LLNameTable | ( | ) | [inline] |
Definition at line 48 of file llnametable.h.
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.
void LLNameTable< DATA >::addEntry | ( | const std::string & | name, | |
DATA | data | |||
) | [inline] |
Definition at line 52 of file llnametable.h.
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.
BOOL LLNameTable< DATA >::checkName | ( | const std::string & | name | ) | const [inline] |
Definition at line 63 of file llnametable.h.
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.
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.
DATA LLNameTable< DATA >::resolveName | ( | const std::string & | name | ) | const [inline] |
Definition at line 75 of file llnametable.h.
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().