Electroneum
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.

138 : ar(a) { }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition: pointer.h:1124

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();
144  ar.write_variant_tag(variant_serialization_traits<Archive<true>, T>::get_tag());
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  }
const uint32_t T[512]
void do_serialize(boost::mpl::false_, Archive &a, epee::net_utils::network_address &na)
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: