Electroneum
Static Public Member Functions | List of all members
serializer< Archive, T > Struct Template Reference

... wouldn't a class be better? More...

#include <serialization.h>

Static Public Member Functions

static bool serialize (Archive &ar, T &v)
 
template<typename A >
static bool serialize (Archive &ar, T &v, boost::false_type, boost::true_type, A a)
 
template<typename A >
static bool serialize (Archive &ar, T &v, boost::true_type, boost::false_type, A a)
 
static bool serialize (Archive &ar, T &v, boost::false_type, boost::false_type, boost::false_type)
 
static bool serialize (Archive &ar, T &v, boost::false_type, boost::false_type, boost::true_type)
 
static void serialize_custom (Archive &ar, T &v, boost::true_type)
 

Detailed Description

template<class Archive, class T>
struct serializer< Archive, T >

... wouldn't a class be better?

\detailed The logic behind serializing data. Places the archive data into the supplied parameter. This dispatches based on the supplied T template parameter's traits of is_blob_type or it is an integral (as defined by the is_integral trait). Depends on the Archive parameter to have overloaded the serialize_blob(T v, size_t size) and serialize_int(T v) base on which trait it applied. When the class has neither types, it falls to the overloaded method do_serialize(Archive ar) in T to do the work.

Member Function Documentation

◆ serialize() [1/5]

template<class Archive , class T >
static bool serializer< Archive, T >::serialize ( Archive &  ar,
T v 
)
inlinestatic

◆ serialize() [2/5]

template<class Archive , class T >
static bool serializer< Archive, T >::serialize ( Archive &  ar,
T v,
boost::false_type  ,
boost::false_type  ,
boost::false_type   
)
inlinestatic

◆ serialize() [3/5]

template<class Archive , class T >
static bool serializer< Archive, T >::serialize ( Archive &  ar,
T v,
boost::false_type  ,
boost::false_type  ,
boost::true_type   
)
inlinestatic

◆ serialize() [4/5]

template<class Archive , class T >
template<typename A >
static bool serializer< Archive, T >::serialize ( Archive &  ar,
T v,
boost::false_type  ,
boost::true_type  ,
a 
)
inlinestatic

◆ serialize() [5/5]

template<class Archive , class T >
template<typename A >
static bool serializer< Archive, T >::serialize ( Archive &  ar,
T v,
boost::true_type  ,
boost::false_type  ,
a 
)
inlinestatic

◆ serialize_custom()

template<class Archive , class T >
static void serializer< Archive, T >::serialize_custom ( Archive &  ar,
T v,
boost::true_type   
)
inlinestatic

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