profile.cpp
Go to the documentation of this file.
1 
29 #include <boost/serialization/export.hpp>
30 #include <boost/serialization/nvp.hpp>
31 
32 namespace tesseract_common
33 {
34 Profile::Profile(std::size_t key) : key_(key) {}
35 
36 std::size_t Profile::getKey() const { return key_; }
37 
38 template <class Archive>
39 void Profile::serialize(Archive& ar, const unsigned int /*version*/)
40 {
41  ar& boost::serialization::make_nvp("key", key_);
42 }
43 } // namespace tesseract_common
44 
46 BOOST_CLASS_EXPORT_IMPLEMENT(tesseract_common::Profile)
profile.h
This is a profile base class.
tesseract_common
Definition: allowed_collision_matrix.h:19
tesseract_common::Profile::key_
std::size_t key_
Definition: profile.h:61
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
Definition: serialization.h:49
tesseract_common::Profile::Profile
Profile()=default
tesseract_common::Profile
The Profile class.
Definition: profile.h:39
tesseract_common::Profile::getKey
std::size_t getKey() const
Get the hash code associated with the profile.
Definition: profile.cpp:36
serialization.h
Additional Boost serialization wrappers.
tesseract_common::Profile::serialize
void serialize(Archive &, const unsigned int)
Definition: profile.cpp:39


tesseract_common
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:40