21 #include <gtsam/dllexport.h> 24 #include <boost/shared_ptr.hpp> 41 typedef std::vector<size_t>
V;
44 boost::shared_ptr<V> v_;
51 DSFBase(
const boost::shared_ptr<V>& v_in);
54 size_t find(
size_t key)
const;
57 void merge(
const size_t& i1,
const size_t& i2);
59 #ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 60 inline size_t findSet(
size_t key)
const {
return find(key);}
61 inline void makeUnionInPlace(
const size_t& i1,
const size_t& i2) {
return merge(i1,i2);}
72 std::vector<size_t> keys_;
79 DSFVector(
const std::vector<size_t>& keys);
82 DSFVector(
const boost::shared_ptr<V>& v_in,
const std::vector<size_t>& keys);
87 bool isSingleton(
const size_t& label)
const;
90 std::set<size_t> set(
const size_t& label)
const;
93 std::map<size_t, std::set<size_t> > sets()
const;
96 std::map<size_t, std::vector<size_t> > arrays()
const;
Definition: DSFVector.h:38
Included from all GTSAM files.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Definition: DSFVector.h:69
std::vector< size_t > V
Vector of ints.
Definition: DSFVector.h:41