21 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 22 #include <boost/version.hpp> 23 #if BOOST_VERSION >= 107400 24 #include <boost/serialization/library_version_type.hpp> 26 #include <boost/serialization/nvp.hpp> 27 #include <boost/serialization/set.hpp> 36 namespace serialization {
50 template<
typename VALUE>
52 typename internal::FastDefaultAllocator<VALUE>::type> {
58 typedef std::set<VALUE, std::less<VALUE>,
66 template<
typename INPUTCONTAINER>
67 explicit FastSet(
const INPUTCONTAINER& container) :
68 Base(container.begin(), container.
end()) {
81 #ifdef GTSAM_ALLOCATOR_BOOSTPOOL 93 operator std::set<VALUE>()
const {
94 return std::set<VALUE>(this->begin(), this->
end());
99 return this->find(e) != this->
end();
104 for (
typename Base::const_iterator it = this->begin(); it != this->
end(); ++it)
110 typename Base::const_iterator it1 = this->begin(), it2 = other.begin();
111 while (it1 != this->
end()) {
126 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION 128 friend class boost::serialization::access;
129 template<
class ARCHIVE>
130 void serialize(ARCHIVE & ar,
const unsigned int ) {
131 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
#define GTSAM_CONCEPT_ASSERT(concept)
Concept check for values that can be used in unit tests.
std::string serialize(const T &input)
serializes to a string
bool exists(const VALUE &e) const
void merge(const FastSet &other)
boost::fast_pool_allocator< T > type
void print(const std::string &str="") const
Array< double, 1, 3 > e(1./3., 0.5, 2.)
void set(Container &c, Position position, const Value &value)
FastSet(const INPUTCONTAINER &container)
std::set< VALUE, std::less< VALUE >, typename internal::FastDefaultAllocator< VALUE >::type > Base
static EIGEN_DEPRECATED const end_t end
bool equals(const FastSet< VALUE > &other, double tol=1e-9) const
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
An easy way to control which allocator is used for Fast* collections.
FastSet(const FastSet< VALUE > &x)