Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Classes | Functions
boost::serialization Namespace Reference

Classes

struct  Load
 
struct  Load< 0 >
 
struct  Save
 
struct  Save< 0 >
 

Functions

template<class Archive , std::size_t ND, typename CellType >
void serialize (Archive &archive, std::array< CellType, ND > &array, const unsigned int)
 
template<typename Archive , typename T >
void serialize (Archive &, Euclid::GridContainer::GridAxis< T > &, const unsigned int)
 
template<typename Archive , typename T >
void saveType (Archive &ar, const T &t, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)
 
template<typename Archive , typename T >
void saveType (Archive &ar, const T &t, typename std::enable_if<!std::is_default_constructible< T >::value >::type *=0)
 
template<typename Archive , typename T >
void save_construct_data (Archive &ar, const Euclid::GridContainer::GridAxis< T > *t, const unsigned int)
 
template<typename Archive , typename T >
loadType (Archive &ar, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)
 
template<typename Archive , typename T >
loadType (Archive &ar, typename std::enable_if<!std::is_default_constructible< T >::value >::type *=0)
 
template<typename Archive , typename T >
void load_construct_data (Archive &ar, Euclid::GridContainer::GridAxis< T > *t, const unsigned int)
 
template<class Archive , typename T >
void save (Archive &ar, const Euclid::GridContainer::VectorValueProxy< T > &value_proxy, const unsigned int)
 
template<class Archive , typename T >
void load (Archive &ar, Euclid::GridContainer::VectorValueProxy< T > &value_proxy, const unsigned int)
 
template<class Archive , typename T >
void serialize (Archive &ar, Euclid::GridContainer::VectorValueProxy< T > &value_proxy, const unsigned int version)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void save (Archive &ar, const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &grid, const unsigned int, typename std::enable_if< std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *=0)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void save (Archive &ar, const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &grid, const unsigned int, typename std::enable_if<!std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *=0)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void load (Archive &ar, Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &grid, const unsigned int, typename std::enable_if< std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *=0)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void load (Archive &ar, Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &grid, const unsigned int, typename std::enable_if<!std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *=0)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void serialize (Archive &ar, Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &grid, const unsigned int version)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void save_construct_data (Archive &ar, const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *t, const unsigned int, typename std::enable_if< std::is_default_constructible< GridCellManager >::value >::type *=nullptr)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void save_construct_data (Archive &ar, const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *t, const unsigned int, typename std::enable_if<!std::is_default_constructible< GridCellManager >::value >::type *=nullptr)
 
template<typename T >
Euclid::GridContainer::GridAxis< T > emptyGridAxis ()
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void load_construct_data (Archive &ar, Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *t, const unsigned int, typename std::enable_if< std::is_default_constructible< GridCellManager >::value >::type *=nullptr)
 
template<class Archive , typename GridCellManager , typename... AxesTypes>
void load_construct_data (Archive &ar, Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *t, const unsigned int, typename std::enable_if<!std::is_default_constructible< GridCellManager >::value >::type *=nullptr)
 
template<typename Archive , typename... Args>
void save (Archive &ar, const std::tuple< Args... > &t, const unsigned int version)
 
template<typename Archive , typename... Args>
void load (Archive &ar, std::tuple< Args... > &t, const unsigned int version)
 
template<typename Archive , typename... Args>
void serialize (Archive &ar, std::tuple< Args... > &t, const unsigned int version)
 
template<class Archive , typename DistFunc >
void save (Archive &ar, const Euclid::SOM::SOM< DistFunc > &som, const unsigned int)
 
template<class Archive , typename DistFunc >
void load (Archive &ar, Euclid::SOM::SOM< DistFunc > &som, const unsigned int)
 
template<class Archive , typename DistFunc >
void serialize (Archive &ar, Euclid::SOM::SOM< DistFunc > &som, const unsigned int version)
 
template<class Archive , typename DistFunc >
void save_construct_data (Archive &ar, const Euclid::SOM::SOM< DistFunc > *t, const unsigned int)
 
template<class Archive , typename DistFunc >
void load_construct_data (Archive &ar, Euclid::SOM::SOM< DistFunc > *t, const unsigned int)
 
template<typename Archive >
void serialize (Archive &, Euclid::XYDataset::QualifiedName &, const unsigned int)
 Serialize/deserialize function.
 
template<typename Archive >
void save_construct_data (Archive &ar, const Euclid::XYDataset::QualifiedName *t, const unsigned int)
 Save the data to be used by the constructor.
 
template<typename Archive >
void load_construct_data (Archive &ar, Euclid::XYDataset::QualifiedName *t, const unsigned int)
 Get constructor data and instantiate the object.
 

Function Documentation

◆ emptyGridAxis()

template<typename T >
Euclid::GridContainer::GridAxis< T > boost::serialization::emptyGridAxis ( )

Helper method which constructs an GridAxis object with empty name and zero knots.

Definition at line 131 of file GridContainer.h.

◆ load() [1/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::load ( Archive &  ar,
Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &  grid,
const unsigned int  ,
typename std::enable_if< std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *  = 0 
)

Method which loads a GridContainer instance from an archive. This version handles default constructible cell values.

Definition at line 71 of file GridContainer.h.

◆ load() [2/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::load ( Archive &  ar,
Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &  grid,
const unsigned int  ,
typename std::enable_if<!std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *  = 0 
)

Method which loads a GridContainer instance from an archive. This version handles non-default constructible cell values.

Definition at line 82 of file GridContainer.h.

◆ load() [3/5]

template<class Archive , typename T >
void boost::serialization::load ( Archive &  ar,
Euclid::GridContainer::VectorValueProxy< T > &  value_proxy,
const unsigned int   
)

Definition at line 41 of file GridCellManagerVectorOfVectors.h.

References Euclid::GridContainer::VectorValueProxy< T >::size().

Referenced by load().

Here is the call graph for this function:

◆ load() [4/5]

template<class Archive , typename DistFunc >
void boost::serialization::load ( Archive &  ar,
Euclid::SOM::SOM< DistFunc > &  som,
const unsigned int   
)

Definition at line 45 of file SOM.h.

◆ load() [5/5]

template<typename Archive , typename... Args>
void boost::serialization::load ( Archive &  ar,
std::tuple< Args... > &  t,
const unsigned int  version 
)

Method which loads a tuple instance to an archive. It uses the Load class to recursively load all the tuple elements.

Definition at line 131 of file tuple.h.

References load().

Here is the call graph for this function:

◆ load_construct_data() [1/5]

template<typename Archive , typename T >
void boost::serialization::load_construct_data ( Archive &  ar,
Euclid::GridContainer::GridAxis< T > *  t,
const unsigned int   
)

Loads from the given archive all the data necessary for reconstructing an GridAxis object and constructs a new one where the t pointer points. The data red are the name of the axis, followed by the number of its knots, followed by the value of each knot. NOTE: Any changes in this method should be reflected in the save_construct_data method.

Definition at line 111 of file GridAxis.h.

References std::vector< T >::push_back().

Here is the call graph for this function:

◆ load_construct_data() [2/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::load_construct_data ( Archive &  ar,
Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *  t,
const unsigned int  ,
typename std::enable_if< std::is_default_constructible< GridCellManager >::value >::type *  = nullptr 
)

Loads from the given archive all the data necessary for reconstructing a GridContainer object and constructs a new one where the t pointer points. The data red are the axes tuple and the GridCellManager. NOTE: Any changes in this method should be reflected in the save_construct_data method.

Definition at line 141 of file GridContainer.h.

◆ load_construct_data() [3/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::load_construct_data ( Archive &  ar,
Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *  t,
const unsigned int  ,
typename std::enable_if<!std::is_default_constructible< GridCellManager >::value >::type *  = nullptr 
)

Definition at line 153 of file GridContainer.h.

◆ load_construct_data() [4/5]

template<class Archive , typename DistFunc >
void boost::serialization::load_construct_data ( Archive &  ar,
Euclid::SOM::SOM< DistFunc > *  t,
const unsigned int   
)

Definition at line 68 of file SOM.h.

◆ load_construct_data() [5/5]

template<typename Archive >
void boost::serialization::load_construct_data ( Archive &  ar,
Euclid::XYDataset::QualifiedName t,
const unsigned int   
)

Get constructor data and instantiate the object.

Reads the Groups vector then the (unqualified)name.

Definition at line 66 of file serialize.h.

References std::move().

Here is the call graph for this function:

◆ loadType() [1/2]

template<typename Archive , typename T >
T boost::serialization::loadType ( Archive &  ar,
typename std::enable_if< std::is_default_constructible< T >::value >::type *  = 0 
)

Version of the loadType method for types which do have default constructors. It loads the object t from the archive. The boost::serialization::serialize method must be implemented for the type T.

Definition at line 83 of file GridAxis.h.

◆ loadType() [2/2]

template<typename Archive , typename T >
T boost::serialization::loadType ( Archive &  ar,
typename std::enable_if<!std::is_default_constructible< T >::value >::type *  = 0 
)

Version of the loadType method for types which do not have default constructor. It loads a pointer to the object t from the archive and it uses it to create the returned value. The method boost::serialization::load_construct_data must be implemented for the type T, which must also have a copy constructor.

Definition at line 95 of file GridAxis.h.

◆ save() [1/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::save ( Archive &  ar,
const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &  grid,
const unsigned int  ,
typename std::enable_if< std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *  = 0 
)

Method which saves a GridContainer instance to an archive. This version handles default constructible cell values.

Definition at line 44 of file GridContainer.h.

◆ save() [2/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::save ( Archive &  ar,
const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &  grid,
const unsigned int  ,
typename std::enable_if<!std::is_default_constructible< typename Euclid::GridContainer::GridCellManagerTraits< GridCellManager >::data_type >::value >::type *  = 0 
)

Method which saves a GridContainer instance to an archive. This version handles non-default constructible cell values.

Definition at line 56 of file GridContainer.h.

◆ save() [3/5]

template<class Archive , typename T >
void boost::serialization::save ( Archive &  ar,
const Euclid::GridContainer::VectorValueProxy< T > &  value_proxy,
const unsigned int   
)

Definition at line 32 of file GridCellManagerVectorOfVectors.h.

References Euclid::GridContainer::VectorValueProxy< T >::size().

Referenced by save().

Here is the call graph for this function:

◆ save() [4/5]

template<class Archive , typename DistFunc >
void boost::serialization::save ( Archive &  ar,
const Euclid::SOM::SOM< DistFunc > &  som,
const unsigned int   
)

Definition at line 38 of file SOM.h.

◆ save() [5/5]

template<typename Archive , typename... Args>
void boost::serialization::save ( Archive &  ar,
const std::tuple< Args... > &  t,
const unsigned int  version 
)

Method which saves a tuple instance to an archive. It uses the Save class to recursively save all the tuple elements.

Definition at line 124 of file tuple.h.

References save().

Here is the call graph for this function:

◆ save_construct_data() [1/5]

template<typename Archive , typename T >
void boost::serialization::save_construct_data ( Archive &  ar,
const Euclid::GridContainer::GridAxis< T > *  t,
const unsigned int   
)

Saves in the given archive all the data necessary for reconstructing the given GridAxis object by using its constructor. The data saved are the name of the axis, followed by the number of its knots, followed by the value of each knot. The knot values must be boost serializable. NOTE: Any changes in this method should be reflected in the load_construct_data method.

Definition at line 69 of file GridAxis.h.

References Euclid::GridContainer::GridAxis< T >::name(), saveType(), and Euclid::GridContainer::GridAxis< T >::size().

Here is the call graph for this function:

◆ save_construct_data() [2/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::save_construct_data ( Archive &  ar,
const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *  t,
const unsigned int  ,
typename std::enable_if< std::is_default_constructible< GridCellManager >::value >::type *  = nullptr 
)

Saves in the given archive all the data necessary for reconstructing the given GridContainer by using its constructor. The data saved is the axes tuple. The cell data are handled in the serialize method. NOTE: Any changes in this method should be reflected in the load_construct_data method.

Definition at line 112 of file GridContainer.h.

References Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes >::getAxesTuple().

Here is the call graph for this function:

◆ save_construct_data() [3/5]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::save_construct_data ( Archive &  ar,
const Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > *  t,
const unsigned int  ,
typename std::enable_if<!std::is_default_constructible< GridCellManager >::value >::type *  = nullptr 
)

◆ save_construct_data() [4/5]

template<class Archive , typename DistFunc >
void boost::serialization::save_construct_data ( Archive &  ar,
const Euclid::SOM::SOM< DistFunc > *  t,
const unsigned int   
)

Definition at line 57 of file SOM.h.

References Euclid::SOM::SOM< DistFunc >::getDimensions(), and Euclid::SOM::SOM< DistFunc >::getSize().

Here is the call graph for this function:

◆ save_construct_data() [5/5]

template<typename Archive >
void boost::serialization::save_construct_data ( Archive &  ar,
const Euclid::XYDataset::QualifiedName t,
const unsigned int   
)

Save the data to be used by the constructor.

Stores the Groups vector then the (unqualified)name.

Definition at line 51 of file serialize.h.

References Euclid::XYDataset::QualifiedName::datasetName(), and Euclid::XYDataset::QualifiedName::groups().

Here is the call graph for this function:

◆ saveType() [1/2]

template<typename Archive , typename T >
void boost::serialization::saveType ( Archive &  ar,
const T &  t,
typename std::enable_if< std::is_default_constructible< T >::value >::type *  = 0 
)

Version of the saveType method for types which do have default constructors. It saves the object t to the archive. The boost::serialization::serialize method must be implemented for the type T.

Definition at line 47 of file GridAxis.h.

Referenced by save_construct_data().

◆ saveType() [2/2]

template<typename Archive , typename T >
void boost::serialization::saveType ( Archive &  ar,
const T &  t,
typename std::enable_if<!std::is_default_constructible< T >::value >::type *  = 0 
)

Version of the saveType method for types which do not have default constructor. It saves a pointer to the object t to the archive, so the boost serialization for non-default constructor types is enabled. The method boost::serialization::save_construct_data must be implemented for the type T.

Definition at line 57 of file GridAxis.h.

◆ serialize() [1/7]

template<typename Archive , typename T >
void boost::serialization::serialize ( Archive &  ,
Euclid::GridContainer::GridAxis< T > &  ,
const unsigned int   
)

Method which saves/loads an GridAxis instance to/from an archive. It does nothing as everything is done with the data passed to the constructor.

Definition at line 39 of file GridAxis.h.

◆ serialize() [2/7]

template<typename Archive >
void boost::serialization::serialize ( Archive &  ,
Euclid::XYDataset::QualifiedName ,
const unsigned int   
)

Serialize/deserialize function.

Everything is done in the constructor. Nothing here.

Definition at line 39 of file serialize.h.

◆ serialize() [3/7]

template<class Archive , typename GridCellManager , typename... AxesTypes>
void boost::serialization::serialize ( Archive &  ar,
Euclid::GridContainer::GridContainer< GridCellManager, AxesTypes... > &  grid,
const unsigned int  version 
)

Method which saves/loads a GridContainer instance to/from an archive. It does a check that the GridCellManager of the GridContainer allows for boost serialization. This check is done in compilation time. After the check the save/load action is delegated to the save and load methods.

Definition at line 99 of file GridContainer.h.

◆ serialize() [4/7]

template<class Archive , typename T >
void boost::serialization::serialize ( Archive &  ar,
Euclid::GridContainer::VectorValueProxy< T > &  value_proxy,
const unsigned int  version 
)

Definition at line 52 of file GridCellManagerVectorOfVectors.h.

◆ serialize() [5/7]

template<class Archive , typename DistFunc >
void boost::serialization::serialize ( Archive &  ar,
Euclid::SOM::SOM< DistFunc > &  som,
const unsigned int  version 
)

Definition at line 52 of file SOM.h.

◆ serialize() [6/7]

template<typename Archive , typename... Args>
void boost::serialization::serialize ( Archive &  ar,
std::tuple< Args... > &  t,
const unsigned int  version 
)

Method which saves/loads a tuple instance to/from an archive. It uses the split_free method to split the two actions in different methods.

Definition at line 138 of file tuple.h.

◆ serialize() [7/7]

template<class Archive , std::size_t ND, typename CellType >
void boost::serialization::serialize ( Archive &  archive,
std::array< CellType, ND > &  array,
const unsigned int   
)

Definition at line 37 of file array.h.