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()) {
83 #ifdef GTSAM_ALLOCATOR_BOOSTPOOL
95 operator std::set<VALUE>()
const {
96 return std::set<VALUE>(this->begin(), this->
end());
101 return this->find(
e) != this->
end();
106 for (
typename Base::const_iterator it = this->begin(); it != this->
end(); ++it)
112 typename Base::const_iterator it1 = this->begin(), it2 =
other.begin();
113 while (it1 != this->
end()) {
128 #if GTSAM_ENABLE_BOOST_SERIALIZATION
130 friend class boost::serialization::access;
131 template<
class ARCHIVE>
132 void serialize(ARCHIVE & ar,
const unsigned int ) {
133 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
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 Sat Dec 28 2024 04:02:09