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 #ifdef 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>
97 return ((
Base*)
this)->erase(first,
last); }
104 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
106 friend class boost::serialization::access;
107 template<
class Archive>
108 void save(Archive& ar,
const unsigned int )
const
112 std::copy(this->begin(), this->
end(), map.begin());
113 ar & BOOST_SERIALIZATION_NVP(map);
115 template<
class Archive>
116 void load(Archive& ar,
const unsigned int )
120 FastVector<std::pair<KEY, VALUE> > map;
121 ar & BOOST_SERIALIZATION_NVP(map);
122 this->
insert(map.begin(), map.end());
124 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)
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 Thu Dec 19 2024 04:00:51