Alexandria
2.19
Please provide a description of the project.
|
Go to the documentation of this file.
25 #ifndef GRIDCONTAINER_SERIALIZATION_GRIDAXIS_H
26 #define GRIDCONTAINER_SERIALIZATION_GRIDAXIS_H
29 #include <boost/serialization/utility.hpp>
31 #include <type_traits>
34 namespace serialization {
38 template <
typename Archive,
typename T>
46 template <
typename Archive,
typename T>
56 template <
typename Archive,
typename T>
68 template <
typename Archive,
typename T>
72 size_t size = t->
size();
74 for (
size_t i = 0; i < size; ++i) {
82 template <
typename Archive,
typename T>
94 template <
typename Archive,
typename T>
110 template <
typename Archive,
typename T>
117 for (
size_t i = 0; i < size; ++i) {
118 T value = loadType<Archive, T>(ar);
void save_construct_data(Archive &ar, const Euclid::GridContainer::GridAxis< T > *t, const unsigned int)
Provides information related with an axis of a GridContainer.
size_t size() const
Returns the number of knots of the axis.
const std::string & name() const
Returns the name of the axis.
T loadType(Archive &ar, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)
void serialize(Archive &archive, std::array< CellType, ND > &array, const unsigned int)
void load_construct_data(Archive &ar, Euclid::GridContainer::GridAxis< T > *t, const unsigned int)
void saveType(Archive &ar, const T &t, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)