Go to the documentation of this file.
21 #include <gtsam/config.h>
23 #if GTSAM_ENABLE_BOOST_SERIALIZATION
24 #include <boost/version.hpp>
25 #if BOOST_VERSION >= 107400
26 #include <boost/serialization/library_version_type.hpp>
28 #include <boost/serialization/nvp.hpp>
29 #include <boost/serialization/set.hpp>
38 namespace serialization {
52 template<
typename VALUE>
54 typename internal::FastDefaultAllocator<VALUE>::type> {
60 typedef std::set<VALUE, std::less<VALUE>,
68 template<
typename INPUTCONTAINER>
69 explicit FastSet(
const INPUTCONTAINER& container) :
70 Base(container.begin(), container.
end()) {
85 #ifdef GTSAM_ALLOCATOR_BOOSTPOOL
97 operator std::set<VALUE>()
const {
98 return std::set<VALUE>(this->begin(), this->
end());
103 return this->find(
e) != this->
end();
108 for (
typename Base::const_iterator it = this->begin(); it != this->
end(); ++it)
114 typename Base::const_iterator it1 = this->begin(), it2 =
other.begin();
115 while (it1 != this->
end()) {
130 #if GTSAM_ENABLE_BOOST_SERIALIZATION
132 friend class boost::serialization::access;
133 template<
class ARCHIVE>
134 void serialize(ARCHIVE & ar,
const unsigned int ) {
135 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Concept check for values that can be used in unit tests.
bool exists(const VALUE &e) const
FastSet(const FastSet< VALUE > &x)
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
void merge(const FastSet &other)
FastSet()=default
Default constructor.
boost::fast_pool_allocator< T > type
FastSet & operator=(const FastSet &other)=default
void print(const std::string &str="") const
void set(Container &c, Position position, const Value &value)
GTSAM_CONCEPT_ASSERT(IsTestable< VALUE >)
FastSet(const INPUTCONTAINER &container)
std::set< VALUE, std::less< VALUE >, typename internal::FastDefaultAllocator< VALUE >::type > Base
An easy way to control which allocator is used for Fast* collections.
static const EIGEN_DEPRECATED end_t end
bool equals(const FastSet< VALUE > &other, double tol=1e-9) const
gtsam
Author(s):
autogenerated on Tue Jan 7 2025 04:02:15