Go to the documentation of this file.
27 # include <tbb/concurrent_unordered_map.h>
28 # undef min // TBB seems to include Windows.h which defines these macros that cause problems
35 template <
typename KEY,
typename VALUE>
46 template <
typename KEY,
typename VALUE>
51 #if GTSAM_ENABLE_BOOST_SERIALIZATION
52 #include <boost/serialization/nvp.hpp>
53 #include <boost/serialization/split_member.hpp>
68 template<
typename KEY,
typename VALUE>
79 template<
typename INPUTITERATOR>
99 return ((
Base*)
this)->erase(first,
last); }
106 #if GTSAM_ENABLE_BOOST_SERIALIZATION
108 friend class boost::serialization::access;
109 template<
class Archive>
110 void save(Archive& ar,
const unsigned int )
const
114 std::copy(this->begin(), this->
end(), map.begin());
115 ar & BOOST_SERIALIZATION_NVP(map);
117 template<
class Archive>
118 void load(Archive& ar,
const unsigned int )
122 FastVector<std::pair<KEY, VALUE> > map;
123 ar & BOOST_SERIALIZATION_NVP(map);
124 this->
insert(map.begin(), map.end());
126 BOOST_SERIALIZATION_SPLIT_MEMBER()
ConcurrentMapBase< KEY, VALUE > Base
A thin wrapper around std::vector that uses a custom allocator.
Included from all GTSAM files.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Point3_ position(const NavState_ &X)
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
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
static const symbolic::SymbolExpr< internal::symbolic_last_tag > last
bool exists(const KEY &e) const
ConcurrentMap(INPUTITERATOR first, INPUTITERATOR last)
void unsafe_erase(typename Base::iterator first, typename Base::iterator last)
ConcurrentMap(const ConcurrentMap< KEY, VALUE > &x)
void unsafe_erase(typename Base::iterator position)
ConcurrentMap(const Base &x)
void save(const Matrix &A, const string &s, const string &filename)
ConcurrentMap & operator=(const ConcurrentMap &other)=default
Base::size_type unsafe_erase(const KEY &k)
static const EIGEN_DEPRECATED end_t end
A thin wrapper around std::map that uses boost's fast_pool_allocator.
gtsam
Author(s):
autogenerated on Tue Jan 7 2025 04:01:59