GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <FastMap.h>
Public Types | |
typedef std::map< KEY, VALUE, std::less< KEY >, typename internal::FastDefaultAllocator< std::pair< const KEY, VALUE > >::type > | Base |
Public Member Functions | |
FastMap () | |
template<typename INPUTITERATOR > | |
FastMap (INPUTITERATOR first, INPUTITERATOR last) | |
FastMap (const FastMap< KEY, VALUE > &x) | |
FastMap (const Base &x) | |
operator std::map< KEY, VALUE > () const | |
bool | insert2 (const KEY &key, const VALUE &val) |
bool | exists (const KEY &e) const |
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.
|
inline |
Default constructor
|
inlineexplicit |
Constructor from a range, passes through to base class
|
inline |
Copy constructor from another FastMap
|
inline |
Copy constructor from the base map class
|
inline |
Handy 'exists' function
|
inline |
Handy 'insert' function for Matlab wrapper
|
inline |
Conversion to a standard STL container