include
pinocchio
serialization
serialization/aligned-vector.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2017-2024 CNRS INRIA
3
//
4
5
#ifndef __pinocchio_serialization_aligned_vector_hpp__
6
#define __pinocchio_serialization_aligned_vector_hpp__
7
8
#include "
pinocchio/container/aligned-vector.hpp
"
9
10
#include <boost/serialization/nvp.hpp>
11
#include <boost/serialization/split_free.hpp>
12
#include "
pinocchio/serialization/vector.hpp
"
13
14
namespace
boost
15
{
16
17
namespace
serialization
18
{
19
20
template
<
class
Archive,
typename
T>
21
void
22
serialize
(Archive & ar,
pinocchio::container::aligned_vector<T>
&
v
,
const
unsigned
int
version
)
23
{
24
split_free(ar,
v
,
version
);
25
}
26
27
#if BOOST_VERSION / 100 % 1000 == 58
28
template
<
class
T>
29
inline
const
fixme::nvp<pinocchio::container::aligned_vector<T>>
30
make_nvp
(
const
char
*
name
,
pinocchio::container::aligned_vector<T>
&
t
)
31
{
32
return
fixme::nvp<pinocchio::container::aligned_vector<T>>(
name
,
t
);
33
}
34
#else
35
template
<
class
T>
36
inline
const
nvp<pinocchio::container::aligned_vector<T>>
37
make_nvp
(
const
char
*
name
,
pinocchio::container::aligned_vector<T>
&
t
)
38
{
39
return
nvp<pinocchio::container::aligned_vector<T>>(
name
,
t
);
40
}
41
#endif
42
43
}
// namespace serialization
44
45
}
// namespace boost
46
47
#endif // ifndef __pinocchio_serialization_aligned_vector_hpp__
vector.hpp
boost::serialization::serialize
void serialize(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int version)
Definition:
serialization/eigen.hpp:222
aligned-vector.hpp
version
Definition:
version.py:1
boost
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
cartpole.v
v
Definition:
cartpole.py:153
setup.name
name
Definition:
cmake/cython/setup.in.py:179
pinocchio::container::aligned_vector
std::vector< T, Eigen::aligned_allocator< T > > aligned_vector
Definition:
container/aligned-vector.hpp:21
serialization
Definition:
serialization.py:1
t
Transform3f t
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:38