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

#include <elm/serial2/collections.h>

+ Inheritance diagram for CollectionSerializer< C, T >:

Public Member Functions

 CollectionSerializer (void)
 
virtual voidinstantiate (void) const
 
virtual void unserialize (Unserializer &unserializer, void *object) const
 
virtual void serialize (Serializer &serializer, const void *object) const
 
- Public Member Functions inherited from Type
 Type (string name="")
 
virtual ~Type (void)
 
string name (void) const
 
const PointerTypepointer (void) const
 
virtual bool canCast (const Type *t) 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 isEnum (void) const
 
virtual const EnumerableasEnum (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 Serializable
virtual ~Serializable (void)
 
virtual const Typetype (void) const =0
 

Static Public Member Functions

static rtti::Typetype (const C &v)
 
static void serialize (Serializer &s, const C &v)
 
static void unserialize (Unserializer &s, C &v)
 
- Static Public Member Functions inherited from Type
static const Typeget (string name)
 
static TypeIter types (void)
 

Static Public Attributes

static CollectionSerializer __type
 
- Static Public Attributes inherited from Type
static const Typeparam0
 
static const Typeparam1
 
static const Typeparam2
 
static const Typeparam3
 

Additional Inherited Members

- Public Types inherited from Type
typedef HashMap< string, const Type * >::Iter TypeIter
 

Constructor & Destructor Documentation

◆ CollectionSerializer()

CollectionSerializer ( void  )
inline

Member Function Documentation

◆ instantiate()

virtual void* instantiate ( void  ) const
inlinevirtual

Implements Serializable.

◆ serialize() [1/2]

static void serialize ( Serializer s,
const C &  v 
)
inlinestatic

◆ serialize() [2/2]

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

Serialize the data passed in parameter that must be of type corresponding to the interface.

Parameters
serSerializer to use.
dataPointer to data to serialize.

Implements Serializable.

◆ type()

static rtti::Type& type ( const C &  v)
inlinestatic

◆ unserialize() [1/2]

static void unserialize ( Unserializer s,
C &  v 
)
inlinestatic

◆ unserialize() [2/2]

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

Unserialize the coming data from the unserializer to the place pointed by data. This place must be of the same type as the serializable type.

Parameters
unsUnserializer to get data from.
dataPointer to place to unserialize in.

Implements Serializable.

Member Data Documentation

◆ __type


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