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

#include <variant.h>

Inheritance diagram for serializer< Archive< true >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::visitor:
Collaboration diagram for serializer< Archive< true >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::visitor:

Public Member Functions

 visitor (Archive< true > &a)
template<class T>
bool operator() (T &rv) const

Public Attributes

Archive< true > & ar

Detailed Description

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

Definition at line 134 of file variant.h.

Constructor & Destructor Documentation

◆ visitor()

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
serializer< Archive< true >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::visitor::visitor ( Archive< true > & a)
inline

Definition at line 138 of file variant.h.

Member Function Documentation

◆ operator()()

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
template<class T>
bool serializer< Archive< true >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::visitor::operator() ( T & rv) const
inline

Definition at line 141 of file variant.h.

142 {
143 ar.begin_variant();
145 if(!::do_serialize(ar, rv))
146 {
147 ar.stream().setstate(std::ios::failbit);
148 return false;
149 }
150 ar.end_variant();
151 return true;
152 }
Here is the call graph for this function:

Member Data Documentation

◆ ar

template<template< bool > class Archive, BOOST_VARIANT_ENUM_PARAMS(typename T)>
Archive<true>& serializer< Archive< true >, boost::variant< BOOST_VARIANT_ENUM_PARAMS(T)> >::visitor::ar

Definition at line 136 of file variant.h.


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