Public Types | Public Member Functions | Private Member Functions | Friends | List of all members
gtsam::FastSet< VALUE > Class Template Reference

#include <FastSet.h>

Inheritance diagram for gtsam::FastSet< VALUE >:
Inheritance graph
[legend]

Public Types

typedef std::set< VALUE, std::less< VALUE >, typename internal::FastDefaultAllocator< VALUE >::typeBase
 

Public Member Functions

bool equals (const FastSet< VALUE > &other, double tol=1e-9) const
 
bool exists (const VALUE &e) const
 
 FastSet ()
 
template<typename INPUTITERATOR >
 FastSet (INPUTITERATOR first, INPUTITERATOR last)
 
template<typename INPUTCONTAINER >
 FastSet (const INPUTCONTAINER &container)
 
 FastSet (const FastSet< VALUE > &x)
 
 FastSet (const Base &x)
 
void merge (const FastSet &other)
 
 operator std::set< VALUE > () const
 
void print (const std::string &str="") const
 

Private Member Functions

 BOOST_CONCEPT_ASSERT ((IsTestable< VALUE >))
 
template<class ARCHIVE >
void serialize (ARCHIVE &ar, const unsigned int)
 

Friends

class boost::serialization::access
 

Detailed Description

template<typename VALUE>
class gtsam::FastSet< VALUE >

Definition at line 45 of file FastSet.h.

Member Typedef Documentation

template<typename VALUE>
typedef std::set<VALUE, std::less<VALUE>, typename internal::FastDefaultAllocator<VALUE>::type> gtsam::FastSet< VALUE >::Base

Definition at line 53 of file FastSet.h.

Constructor & Destructor Documentation

template<typename VALUE>
gtsam::FastSet< VALUE >::FastSet ( )
inline

Default constructor

Definition at line 56 of file FastSet.h.

template<typename VALUE>
template<typename INPUTITERATOR >
gtsam::FastSet< VALUE >::FastSet ( INPUTITERATOR  first,
INPUTITERATOR  last 
)
inlineexplicit

Constructor from a range, passes through to base class

Definition at line 61 of file FastSet.h.

template<typename VALUE>
template<typename INPUTCONTAINER >
gtsam::FastSet< VALUE >::FastSet ( const INPUTCONTAINER &  container)
inlineexplicit

Constructor from a iterable container, passes through to base class

Definition at line 67 of file FastSet.h.

template<typename VALUE>
gtsam::FastSet< VALUE >::FastSet ( const FastSet< VALUE > &  x)
inline

Copy constructor from another FastSet

Definition at line 72 of file FastSet.h.

template<typename VALUE>
gtsam::FastSet< VALUE >::FastSet ( const Base x)
inline

Copy constructor from the base set class

Definition at line 77 of file FastSet.h.

Member Function Documentation

template<typename VALUE>
gtsam::FastSet< VALUE >::BOOST_CONCEPT_ASSERT ( (IsTestable< VALUE >)  )
private
template<typename VALUE>
bool gtsam::FastSet< VALUE >::equals ( const FastSet< VALUE > &  other,
double  tol = 1e-9 
) const
inline

Check for equality within tolerance to implement Testable

Definition at line 109 of file FastSet.h.

template<typename VALUE>
bool gtsam::FastSet< VALUE >::exists ( const VALUE &  e) const
inline

Handy 'exists' function

Definition at line 98 of file FastSet.h.

template<typename VALUE>
void gtsam::FastSet< VALUE >::merge ( const FastSet< VALUE > &  other)
inline

insert another set: handy for MATLAB access

Definition at line 121 of file FastSet.h.

template<typename VALUE>
gtsam::FastSet< VALUE >::operator std::set< VALUE > ( ) const
inline

Conversion to a standard STL container

Definition at line 93 of file FastSet.h.

template<typename VALUE>
void gtsam::FastSet< VALUE >::print ( const std::string &  str = "") const
inline

Print to implement Testable: pretty basic

Definition at line 103 of file FastSet.h.

template<typename VALUE>
template<class ARCHIVE >
void gtsam::FastSet< VALUE >::serialize ( ARCHIVE &  ar,
const unsigned  int 
)
inlineprivate

Definition at line 129 of file FastSet.h.

Friends And Related Function Documentation

template<typename VALUE>
friend class boost::serialization::access
friend

Serialization function

Definition at line 127 of file FastSet.h.


The documentation for this class was generated from the following file:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:09