ecto
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
ecto::serialization::registry< Archive > Struct Template Reference

#include <registry.hpp>

Inheritance diagram for ecto::serialization::registry< Archive >:
Inheritance graph
[legend]
Collaboration diagram for ecto::serialization::registry< Archive >:
Collaboration graph
[legend]

Public Types

typedef boost::function< void(Archive &, tendril &)> serial_fn_t
 
typedef std::map< std::string, serial_fn_tserial_map_t
 

Public Member Functions

template<typename Serializer >
void add (const Serializer &s)
 
void add (const std::string &name, serial_fn_t fnc)
 
void serialize (const std::string &key, Archive &ar, tendril &t) const
 

Static Public Member Functions

static registry< Archive > & instance ()
 

Public Attributes

serial_map_t serial_map
 

Private Member Functions

 registry ()
 

Member Typedef Documentation

template<typename Archive>
typedef boost::function<void(Archive&, tendril&)> ecto::serialization::registry< Archive >::serial_fn_t
template<typename Archive>
typedef std::map<std::string, serial_fn_t> ecto::serialization::registry< Archive >::serial_map_t

Constructor & Destructor Documentation

template<typename Archive>
ecto::serialization::registry< Archive >::registry ( )
private

Member Function Documentation

template<typename Archive>
template<typename Serializer >
void ecto::serialization::registry< Archive >::add ( const Serializer &  s)
inline
template<typename Archive>
void ecto::serialization::registry< Archive >::add ( const std::string &  name,
serial_fn_t  fnc 
)
template<typename Archive>
static registry<Archive>& ecto::serialization::registry< Archive >::instance ( )
static
template<typename Archive>
void ecto::serialization::registry< Archive >::serialize ( const std::string &  key,
Archive &  ar,
tendril t 
) const

Member Data Documentation

template<typename Archive>
serial_map_t ecto::serialization::registry< Archive >::serial_map

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