PointerVectorVariantWrapper< VariantTypes > Class Template Reference

The objective of this class is to create a wrapper for a vector of boost::variant that holds pointer. More...

Public Member Functions

 PointerVectorVariantWrapper (std::vector< boost::variant< VariantTypes... >> &vecPointerVar)
 
template
<
class
Archive
>
void load (Archive &ar)
 
template
<
class
Archive
>
void save (Archive &ar) const
 

Detailed Description


template<typename... VariantTypes>
class cereal::PointerVectorVariantWrapper< VariantTypes >

The objective of this class is to create a wrapper for a vector of boost::variant that holds pointer.

Cereal supports the serialization of boost::variant, but we need to serialize it if it holds a vector of boost::variant that holds a pointers.

Definition at line 24 of file pointer_vector_variant_wrapper.hpp.

Constructor & Destructor Documentation

◆ PointerVectorVariantWrapper()

PointerVectorVariantWrapper ( std::vector< boost::variant< VariantTypes... >> &  vecPointerVar)
inline

Definition at line 52 of file pointer_vector_variant_wrapper.hpp.

Member Function Documentation

◆ load()

void load ( Archive &  ar)
inline

Definition at line 69 of file pointer_vector_variant_wrapper.hpp.

References CEREAL_VARIANT_POINTER.

◆ save()

void save ( Archive &  ar) const
inline

Definition at line 58 of file pointer_vector_variant_wrapper.hpp.

References CEREAL_VARIANT_POINTER.


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