Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Enum< T > Class Template Reference

#include <elm/serial2/serial.h>

+ Inheritance diagram for Enum< T >:

Public Member Functions

 Enum (const make &make)
 
 Enum (cstring name, const Value values[])
 
virtual voidinstantiate (void) const
 
virtual void serialize (serial2::Serializer &ser, const void *data) const
 
virtual void unserialize (serial2::Unserializer &uns, void *data) const
 
- Public Member Functions inherited from Enum
 Enum (const make &make)
 
 Enum (cstring name, const Value values[])
 
Iter values (void) const
 
virtual const Typetype (void) const
 
virtual int valueFor (string text) const
 
virtual cstring nameFor (int value) const
 
virtual bool canCast (const Type *t) const
 
virtual bool isEnum (void) const
 
virtual const EnumerableasEnum (void) const
 
- Public Member Functions inherited from Type
 Type (string name="")
 
virtual ~Type (void)
 
string name (void) const
 
const PointerTypepointer (void) const
 
virtual bool isVoid (void) const
 
virtual bool isBool (void) const
 
virtual bool isInt (void) const
 
virtual bool isFloat (void) const
 
virtual bool isPtr (void) const
 
virtual const PointerTypeasPtr (void) const
 
virtual bool isClass (void) const
 
virtual const AbstractClassasClass (void) const
 
virtual bool isSerial (void) const
 
virtual const SerializableasSerial (void) const
 
virtual const TemplateTypeasTemplate (void) const
 
virtual const InstanceTypeasInstance (void) const
 
virtual const ParamTypeasParam (void) const
 
void initialize (void)
 
bool operator== (const Type &t) const
 
bool operator!= (const Type &t) const
 
- Public Member Functions inherited from Enumerable
virtual ~Enumerable (void)
 

Additional Inherited Members

- Public Types inherited from Enum
typedef Vector< Value >::Iter Iter
 
- Public Types inherited from Type
typedef HashMap< string, const Type * >::Iter TypeIter
 
- Static Public Member Functions inherited from Type
static const Typeget (string name)
 
static TypeIter types (void)
 
- Static Public Attributes inherited from Type
static const Typeparam0
 
static const Typeparam1
 
static const Typeparam2
 
static const Typeparam3
 

Constructor & Destructor Documentation

◆ Enum() [1/2]

Enum ( const make make)
inline

◆ Enum() [2/2]

Enum ( cstring  name,
const Value  values[] 
)
inline

Member Function Documentation

◆ instantiate()

virtual void* instantiate ( void  ) const
inlinevirtual

◆ serialize()

virtual void serialize ( serial2::Serializer ser,
const void data 
) const
inlinevirtual

References Serializer::onEnum().

◆ unserialize()

virtual void unserialize ( serial2::Unserializer uns,
void data 
) const
inlinevirtual

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