GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <FastSet.h>
Public Types | |
typedef std::set< VALUE, std::less< VALUE >, typename internal::FastDefaultAllocator< VALUE >::type > | Base |
Public Member Functions | |
FastSet ()=default | |
Default constructor. | |
template<typename INPUTCONTAINER > | |
FastSet (const INPUTCONTAINER &container) | |
FastSet (const FastSet< VALUE > &x) | |
FastSet (const Base &x) | |
operator std::set< VALUE > () const | |
bool | exists (const VALUE &e) const |
void | print (const std::string &str="") const |
bool | equals (const FastSet< VALUE > &other, double tol=1e-9) const |
void | merge (const FastSet &other) |
FastSet is a thin wrapper around std::set 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 %.
|
inlineexplicit |
Constructor from a iterable container, passes through to base class
|
inline |
Copy constructor from another FastSet
|
inline |
Copy constructor from the base set class
|
inline |
Check for equality within tolerance to implement Testable
|
inline |
Handy 'exists' function
|
inline |
insert another set: handy for MATLAB access
|
inline |
Conversion to a standard STL container
|
inline |
Print to implement Testable: pretty basic