#include <ConcurrentMap.h>
Public Types | |
typedef ConcurrentMapBase< KEY, VALUE > | Base |
Public Types inherited from gtsam::FastMap< KEY, VALUE > | |
typedef std::map< KEY, VALUE, std::less< KEY >, typename internal::FastDefaultAllocator< std::pair< const KEY, VALUE > >::type > | Base |
Public Member Functions | |
ConcurrentMap () | |
template<typename INPUTITERATOR > | |
ConcurrentMap (INPUTITERATOR first, INPUTITERATOR last) | |
ConcurrentMap (const ConcurrentMap< KEY, VALUE > &x) | |
ConcurrentMap (const Base &x) | |
bool | exists (const KEY &e) const |
void | unsafe_erase (typename Base::iterator position) |
Base::size_type | unsafe_erase (const KEY &k) |
void | unsafe_erase (typename Base::iterator first, typename Base::iterator last) |
Public Member Functions inherited from gtsam::FastMap< KEY, VALUE > | |
bool | exists (const KEY &e) const |
FastMap () | |
template<typename INPUTITERATOR > | |
FastMap (INPUTITERATOR first, INPUTITERATOR last) | |
FastMap (const FastMap< KEY, VALUE > &x) | |
FastMap (const Base &x) | |
bool | insert2 (const KEY &key, const VALUE &val) |
operator std::map< KEY, VALUE > () const | |
Private Member Functions | |
void | erase () |
FastMap is a thin wrapper around std::map that uses the boost fast_pool_allocator instead of the default STL allocator. This is just a convenience to avoid having lengthy types in the code. Through timing, we've seen that the fast_pool_allocator can lead to speedups of several percent.
Definition at line 69 of file ConcurrentMap.h.
typedef ConcurrentMapBase<KEY,VALUE> gtsam::ConcurrentMap< KEY, VALUE >::Base |
Definition at line 73 of file ConcurrentMap.h.
|
inline |
Default constructor
Definition at line 76 of file ConcurrentMap.h.
|
inline |
Constructor from a range, passes through to base class
Definition at line 80 of file ConcurrentMap.h.
|
inline |
Copy constructor from another ConcurrentMap
Definition at line 83 of file ConcurrentMap.h.
|
inline |
Copy constructor from the base map class
Definition at line 86 of file ConcurrentMap.h.
|
inlineprivate |
Definition at line 99 of file ConcurrentMap.h.
|
inline |
Handy 'exists' function
Definition at line 89 of file ConcurrentMap.h.
|
inline |
Definition at line 94 of file ConcurrentMap.h.
|
inline |
Definition at line 95 of file ConcurrentMap.h.
|
inline |
Definition at line 96 of file ConcurrentMap.h.