5 #ifndef __pinocchio_serialization_aligned_vector_hpp__ 6 #define __pinocchio_serialization_aligned_vector_hpp__ 8 #include "pinocchio/container/aligned-vector.hpp" 10 #include <boost/serialization/nvp.hpp> 11 #include <boost/serialization/split_free.hpp> 12 #include "pinocchio/serialization/vector.hpp" 20 template <
class Archive,
typename T>
26 split_free(ar,*static_cast<vector_base*>(&v),version);
29 #if BOOST_VERSION / 100 % 1000 == 58 32 const fixme::nvp< typename pinocchio::container::aligned_vector<T>::vector_base >
36 return fixme::nvp< vector_base >(
name, *
static_cast<vector_base*
>(&
t));
41 const nvp< typename pinocchio::container::aligned_vector<T>::vector_base >
45 return nvp< vector_base >(
name, *
static_cast<vector_base*
>(&
t));
53 #endif // ifndef __pinocchio_serialization_aligned_vector_hpp__ ::std::vector< T, Eigen::aligned_allocator< T > > vector_base
Specialization of an std::vector with an aligned allocator. This specialization might be used when th...
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
void serialize(Archive &ar, pinocchio::container::aligned_vector< T > &v, const unsigned int version)