GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
gtsam::DSFMap< KEY > Class Template Reference

#include <DSFMap.h>

Classes

struct  Entry
 We store the forest in an STL map, but parents are done with pointers. More...
 

Public Types

typedef std::set< KEY > Set
 

Public Member Functions

 DSFMap ()
 constructor
 
KEY find (const KEY &key) const
 Given key, find the representative key for the set in which it lives.
 
void merge (const KEY &x, const KEY &y)
 Merge two sets.
 
std::map< KEY, Set > sets () const
 return all sets, i.e. a partition of all elements
 

Protected Types

typedef std::map< KEY, EntryMap
 
typedef Map::iterator iterator
 

Protected Member Functions

iterator find__ (const KEY &key) const
 Given key, find iterator to initial entry.
 
iterator find_ (const iterator &it) const
 Given iterator to initial entry, find the root Entry.
 
iterator find_ (const KEY &key) const
 Given key, find the root Entry.
 

Protected Attributes

Map entries_
 

Detailed Description

template<class KEY>
class gtsam::DSFMap< KEY >

Disjoint set forest using an STL map data structure underneath Uses rank compression and union by rank, iterator version


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