25#ifndef GRIDCONTAINER_SERIALIZATION_GRIDAXIS_H
26#define GRIDCONTAINER_SERIALIZATION_GRIDAXIS_H
29#include <boost/serialization/utility.hpp>
34namespace serialization {
38template <
typename Archive,
typename T>
46template <
typename Archive,
typename T>
56template <
typename Archive,
typename T>
68template <
typename Archive,
typename T>
72 size_t size = t->
size();
74 for (
size_t i = 0; i < size; ++i) {
82template <
typename Archive,
typename T>
94template <
typename Archive,
typename T>
110template <
typename Archive,
typename T>
117 for (
size_t i = 0; i < size; ++i) {
118 T value = loadType<Archive, T>(ar);
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.
void saveType(Archive &ar, const T &t, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)
void serialize(Archive &archive, std::array< CellType, ND > &array, const unsigned int)
T loadType(Archive &ar, typename std::enable_if< std::is_default_constructible< T >::value >::type *=0)
void save_construct_data(Archive &ar, const Euclid::GridContainer::GridAxis< T > *t, const unsigned int)
void load_construct_data(Archive &ar, Euclid::GridContainer::GridAxis< T > *t, const unsigned int)