cereal
A C++11 library for serialization
 All Classes Files Functions Variables Typedefs Enumerations Groups
Public Member Functions | Static Public Member Functions | List of all members
cereal::detail::OutputBindingCreator< Archive, T > Struct Template Reference

Creates a binding (map entry) between an output archive type and a polymorphic type. More...

#include <cereal/details/polymorphic_impl.hpp>

Public Member Functions

 OutputBindingCreator ()
 Initialize the binding.
 

Static Public Member Functions

static void writeMetadata (Archive &ar)
 Writes appropriate metadata to the archive for this polymorphic type.
 

Detailed Description

template<class Archive, class T>
struct cereal::detail::OutputBindingCreator< Archive, T >

Creates a binding (map entry) between an output archive type and a polymorphic type.

Bindings are made when types are registered, assuming that at least one archive has already been registered. When this struct is created, it will insert (at run time) an entry into a map that properly handles casting for serializing polymorphic objects


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