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 
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(
21  Archive & ar,
23  const unsigned int /*version*/)
24  {
25  ar & make_nvp("data", make_array(S.data().data(), 6));
26  }
27 
28  template<class Archive, typename Scalar, int Options>
29  void load(
30  Archive & ar, pinocchio::Symmetric3Tpl<Scalar, Options> & S, 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(
37  Archive & ar, pinocchio::Symmetric3Tpl<Scalar, Options> & S, const unsigned int version)
38  {
39  split_free(ar, S, version);
40  }
41 
42  } // namespace serialization
43 } // namespace boost
44 
45 #endif // ifndef __pinocchio_serialization_symmetric3_hpp__
boost::serialization::serialize
void serialize(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int version)
Definition: serialization/eigen.hpp:222
boost::serialization::save
void save(Archive &ar, const Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int)
Definition: serialization/eigen.hpp:192
version
Definition: version.py:1
boost
boost::serialization::load
void load(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int)
Definition: serialization/eigen.hpp:206
boost::serialization::make_nvp
const nvp< pinocchio::container::aligned_vector< T > > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
Definition: serialization/aligned-vector.hpp:37
simulation-contact-dynamics.S
S
Definition: simulation-contact-dynamics.py:80
symmetric3.hpp
pinocchio::Symmetric3Tpl
Definition: spatial/fwd.hpp:60
serialization
Definition: serialization.py:1
fwd.hpp


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:33