Honeycomb  0.1
Component-Model Framework
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
honey::EnumInfo_< EnumType > Class Template Reference

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< ElemElemList
 

Public Member Functions

const ElemListelemList () const
 Get all elements. More...
 
const Elemelem (const Id &id) const
 Get element by id, throws EnumError if not found. More...
 
const Elemelem (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 ()
 

Detailed Description

template<class EnumType>
class honey::EnumInfo_< EnumType >

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.

Member Typedef Documentation

template<class EnumType >
typedef vector<Elem> honey::EnumInfo_< EnumType >::ElemList

Constructor & Destructor Documentation

template<class EnumType >
honey::EnumInfo_< EnumType >::EnumInfo_ ( )
inlineprotected

Member Function Documentation

template<class EnumType >
void honey::EnumInfo_< EnumType >::addElem ( const String className,
const String name,
int  val 
)
inlineprotected
template<class EnumType >
const Elem& honey::EnumInfo_< EnumType >::elem ( const Id id) const
inline

Get element by id, throws EnumError if not found.

template<class EnumType >
const Elem& honey::EnumInfo_< EnumType >::elem ( int  val) const
inline

Get element by value, throws EnumError if not found.

template<class EnumType >
const ElemList& honey::EnumInfo_< EnumType >::elemList ( ) const
inline

Get all elements.

template<class EnumType >
void honey::EnumInfo_< EnumType >::setup ( )
inlineprotected

The documentation for this class was generated from the following file: