|
LRAUV
revA
|
Provides mapping between unit names and units. More...
#include <UnitRegistry.h>

Classes | |
| class | StaticDestructor |
| Makes sure that instance_ is deleted on shutdown. More... | |
Static Public Member Functions | |
| static void | AddUnit (const Unit *unit) |
| static const Unit * | FindUnit (const Str &name) |
| static unsigned int | Size () |
| static const Str & | GetIndexedKey (unsigned int index) |
| static const Unit * | GetIndexedUnit (unsigned int index) |
Protected Attributes | |
| UnitMap | unitMap_ |
Static Protected Attributes | |
| static UnitRegistry * | Instance_ |
| static UnitRegistry::StaticDestructor | StaticDestructor_ |
| Static instance of StaticDestructor. More... | |
Private Member Functions | |
| UnitRegistry () | |
Provides mapping between unit names and units.
It has a singleton instance that contains the mapping.
|
inlineprivate |
Referenced by AddUnit().
|
static |
References FindUnit(), Unit::getAbbreviation(), Unit::getName(), Instance_, FastMap< S, T >::put(), unitMap_, and UnitRegistry().
Referenced by Unit::Unit().
|
static |
References Str::EMPTY_STR, FastMap< S, T >::getIndexedEntry(), Instance_, and unitMap_.
Referenced by ParsedCommand::matchUnit().
|
static |
References FastMap< S, T >::getIndexed(), Instance_, and unitMap_.
Referenced by ParsedCommand::matchUnit().
|
static |
References Instance_, FastMap< S, T >::size(), and unitMap_.
Referenced by ParsedCommand::matchUnit().
|
staticprotected |
Referenced by AddUnit(), FindUnit(), GetIndexedKey(), GetIndexedUnit(), Size(), and UnitRegistry::StaticDestructor::~StaticDestructor().
|
staticprotected |
Static instance of StaticDestructor.
|
protected |
Referenced by AddUnit(), FindUnit(), GetIndexedKey(), GetIndexedUnit(), and Size().