Electroneum
Loading...
Searching...
No Matches
serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> > Struct Template Reference

#include <variant.h>

Public Types

typedef boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> variant_type
typedef Archive< false >::variant_tag_type variant_tag_type
typedef variant_type::types types

Static Public Member Functions

static bool serialize (Archive< false > &ar, variant_type &v)
static void serialize_custom (Archive &ar, T &v, boost::true_type)

Detailed Description

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
struct serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >

Definition at line 106 of file variant.h.

Member Typedef Documentation

◆ types

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
typedef variant_type::types serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::types

Definition at line 110 of file variant.h.

◆ variant_tag_type

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
typedef Archive<false>::variant_tag_type serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::variant_tag_type

Definition at line 109 of file variant.h.

◆ variant_type

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
typedef boost::variant<BOOST_VARIANT_ENUM_PARAMS(T)> serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::variant_type

Definition at line 108 of file variant.h.

Member Function Documentation

◆ serialize()

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
bool serializer< Archive< false >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::serialize ( Archive< false > & ar,
variant_type & v )
inlinestatic

Definition at line 112 of file variant.h.

112 {
114 ar.begin_variant();
115 ar.read_variant_tag(t);
119 {
120 ar.stream().setstate(std::ios::failbit);
121 return false;
122 }
123 ar.end_variant();
124 return true;
125 }
... wouldn't a class be better?

◆ serialize_custom()

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

Definition at line 114 of file serialization.h.

114 {
115 }

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/serialization/variant.h