From 90ddac8fac8683abc3da08252fe3ceda7d62a3dc Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Tue, 10 Sep 2013 19:26:02 +0000 Subject: [PATCH] Added a print function to the BayesTreeCliqueWrapper that also prints out contents --- gtsam/inference/BayesTree.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtsam/inference/BayesTree.h b/gtsam/inference/BayesTree.h index e88dd8ade..14eb6f5fb 100644 --- a/gtsam/inference/BayesTree.h +++ b/gtsam/inference/BayesTree.h @@ -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