coal/serialization/kDOP.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2024 INRIA
3 //
4 
5 #ifndef COAL_SERIALIZATION_kDOP_H
6 #define COAL_SERIALIZATION_kDOP_H
7 
8 #include "coal/BV/kDOP.h"
9 
10 #include "coal/serialization/fwd.h"
11 
12 namespace boost {
13 namespace serialization {
14 
15 namespace internal {
16 template <short N>
17 struct KDOPAccessor : coal::KDOP<N> {
19  using Base::dist_;
20 };
21 } // namespace internal
22 
23 template <class Archive, short N>
24 void serialize(Archive& ar, coal::KDOP<N>& bv_,
25  const unsigned int /*version*/) {
26  typedef internal::KDOPAccessor<N> Accessor;
27  Accessor& access = reinterpret_cast<Accessor&>(bv_);
28  ar& make_nvp("distances", make_array(access.dist_.data(), N));
29 }
30 
31 } // namespace serialization
32 } // namespace boost
33 
34 #endif // COAL_SERIALIZATION_kDOP_H
fwd.h
boost::serialization::serialize
void serialize(Archive &ar, coal::AABB &aabb, const unsigned int)
Definition: coal/serialization/AABB.h:15
boost
coal::KDOP::dist_
Eigen::Array< CoalScalar, N, 1 > dist_
Origin's distances to N KDOP planes.
Definition: coal/BV/kDOP.h:94
kDOP.h
coal::KDOP
KDOP class describes the KDOP collision structures. K is set as the template parameter,...
Definition: coal/BV/kDOP.h:91
boost::serialization::internal::KDOPAccessor::Base
coal::KDOP< N > Base
Definition: coal/serialization/kDOP.h:18
boost::serialization::internal::KDOPAccessor
Definition: coal/serialization/kDOP.h:17


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:58