return const & to vectors and remove obsolete member variable

release/4.3a0
dellaert 2018-11-08 16:37:33 -05:00
parent 6fef22f1ed
commit 99e346d6d1
1 changed files with 2 additions and 3 deletions

View File

@ -51,7 +51,6 @@ public:
private: private:
FastVector<int32_t> xadj_; // Index of node's adjacency list in adj FastVector<int32_t> xadj_; // Index of node's adjacency list in adj
FastVector<int32_t> adj_; // Stores ajacency lists of all nodes, appended into a single vector FastVector<int32_t> adj_; // Stores ajacency lists of all nodes, appended into a single vector
FastVector<int32_t> iadj_; // Integer keys for passing into metis. One to one mapping with adj_;
boost::bimap<Key, int32_t> intKeyBMap_; // Stores Key <-> integer value relationship boost::bimap<Key, int32_t> intKeyBMap_; // Stores Key <-> integer value relationship
size_t nKeys_; size_t nKeys_;
@ -83,10 +82,10 @@ public:
template<class FACTOR> template<class FACTOR>
void augment(const FactorGraph<FACTOR>& factors); void augment(const FactorGraph<FACTOR>& factors);
std::vector<int32_t> xadj() const { const FastVector<int32_t>& xadj() const {
return xadj_; return xadj_;
} }
std::vector<int32_t> adj() const { const FastVector<int32_t>& adj() const {
return adj_; return adj_;
} }
size_t nValues() const { size_t nValues() const {