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>
89 bool exists(
const KEY&
e)
const {
return this->count(e); }
95 typename Base::size_type
unsafe_erase(
const KEY& k) {
return ((Base*)
this)->erase(k); }
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 )
121 ar & BOOST_SERIALIZATION_NVP(map);
122 this->
insert(map.begin(), map.end());
124 BOOST_SERIALIZATION_SPLIT_MEMBER()
void save(const Matrix &A, const string &s, const string &filename)
void unsafe_erase(typename Base::iterator first, typename Base::iterator last)
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
ConcurrentMap(const ConcurrentMap< KEY, VALUE > &x)
bool exists(const KEY &e) const
ConcurrentMap(const Base &x)
static const symbolic::SymbolExpr< internal::symbolic_last_tag > last
Included from all GTSAM files.
ConcurrentMap(INPUTITERATOR first, INPUTITERATOR last)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
A thin wrapper around std::vector that uses a custom allocator.
A thin wrapper around std::map that uses boost's fast_pool_allocator.
void unsafe_erase(typename Base::iterator position)
Base::size_type unsafe_erase(const KEY &k)
Point3_ position(const NavState_ &X)
static EIGEN_DEPRECATED const end_t end
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
ConcurrentMapBase< KEY, VALUE > Base