serialization/symmetric3.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019 INRIA
3 //
4 
5 #ifndef __pinocchio_serialization_symmetric3_hpp__
6 #define __pinocchio_serialization_symmetric3_hpp__
7 
8 #include "pinocchio/spatial/symmetric3.hpp"
9 #include "pinocchio/serialization/fwd.hpp"
10 
11 #include <boost/serialization/split_free.hpp>
12 #include <boost/serialization/vector.hpp>
13 
14 namespace boost
15 {
16  namespace serialization
17  {
18 
19  template <class Archive, typename Scalar, int Options>
20  void save(Archive & ar,
22  const unsigned int /*version*/)
23  {
24  ar & make_nvp("data",make_array(S.data().data(),6));
25  }
26 
27  template <class Archive, typename Scalar, int Options>
28  void load(Archive & ar,
30  const unsigned int /*version*/)
31  {
32  ar >> make_nvp("data",make_array(S.data().data(),6));
33  }
34 
35  template <class Archive, typename Scalar, int Options>
36  void serialize(Archive & ar,
38  const unsigned int version)
39  {
40  split_free(ar,S,version);
41  }
42 
43  }
44 }
45 
46 #endif // ifndef __pinocchio_serialization_symmetric3_hpp__
void save(Archive &ar, const Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols > &m, const unsigned int)
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
const Vector6 & data() const
void load(Archive &ar, Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols > &m, const unsigned int)
void serialize(Archive &ar, pinocchio::container::aligned_vector< T > &v, const unsigned int version)


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:04