Honeycomb
0.1
Component-Model Framework
|
Run-time info about an enum class. Contains a list of elements and maps for element lookups. See Enumeration Classes for more info and examples. More...
#include <Enum.h>
Classes | |
struct | Elem |
Public Types | |
typedef vector< Elem > | ElemList |
Public Member Functions | |
const ElemList & | elemList () const |
Get all elements. More... | |
const Elem & | elem (const Id &id) const |
Get element by id, throws EnumError if not found. More... | |
const Elem & | elem (int val) const |
Get element by value, throws EnumError if not found. More... | |
Protected Member Functions | |
EnumInfo_ () | |
void | addElem (const String &className, const String &name, int val) |
void | setup () |
Run-time info about an enum class. Contains a list of elements and maps for element lookups. See Enumeration Classes for more info and examples.
typedef vector<Elem> honey::EnumInfo_< EnumType >::ElemList |
|
inlineprotected |
|
inlineprotected |
|
inline |
Get element by id, throws EnumError if not found.
|
inline |
Get element by value, throws EnumError if not found.
|
inline |
Get all elements.
|
inlineprotected |