Line |
Branch |
Exec |
Source |
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( |
21 |
|
|
Archive & ar, |
22 |
|
|
const pinocchio::Symmetric3Tpl<Scalar, Options> & S, |
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__ |
46 |
|
|
|