Go to the documentation of this file.
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);
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 Nov 16 2024 04:02:17