Removed checkConsistency() from BayesTree

release/4.3a0
Alex Cunningham 2013-05-22 17:27:44 +00:00
parent 15fb7234e6
commit 228a26947f
3 changed files with 0 additions and 26 deletions

View File

@ -819,7 +819,6 @@ virtual class BayesTree {
void insert(const CLIQUE* subtree);
size_t numCachedSeparatorMarginals() const;
CLIQUE* clique(size_t j) const;
bool checkConsistency() const;
};
template<CONDITIONAL>

View File

@ -800,23 +800,5 @@ namespace gtsam {
}
/* ************************************************************************* */
template<class CONDITIONAL, class CLIQUE>
bool BayesTree<CONDITIONAL,CLIQUE>::checkConsistency() const {
// Verify all nodes are mapped to initialized cliques
bool result = true;
for (gtsam::Index idx=0; idx<nodes_.size(); ++idx) {
const sharedClique& clique = nodes_[idx];
// Bad clique check
if (!clique) {
if (result)
std::cout << "BayesTree consistency check failures:" << std::endl;
std::cout << " Null pointer clique entry for node " << idx << std::endl;
result = false;
break;
}
}
return result;
}
/* ************************************************************************* */
} // \namespace gtsam

View File

@ -290,13 +290,6 @@ namespace gtsam {
return shared_ptr(new This(*this));
}
/**
* Verify internal consistency of indexing
* Prints results to stdout
* @return true iff correct
*/
bool checkConsistency() const;
protected:
/** private helper method for saving the Tree to a text file in GraphViz format */