Added a print function to the BayesTreeCliqueWrapper that also prints out contents

release/4.3a0
Alex Cunningham 2013-09-10 19:26:02 +00:00
parent 22dc80e4ff
commit 90ddac8fac
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ namespace gtsam {
// this subtree into the elimination.
this->keys_.assign(clique->conditional()->beginParents(), clique->conditional()->endParents());
}
void print(const std::string& s="", const KeyFormatter& formatter = DefaultKeyFormatter) const {
clique->print(s + "stored clique", formatter);
}
};
} /// namespace gtsam