From 0e60b8cc4d23dde94862fed5b9bba349d37d82e8 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Fri, 21 Sep 2012 20:02:26 +0000 Subject: [PATCH] Added access functions for cachedSeparatorMarginals --- gtsam/inference/BayesTreeCliqueBase.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtsam/inference/BayesTreeCliqueBase.h b/gtsam/inference/BayesTreeCliqueBase.h index edde8dedc..7038ac228 100644 --- a/gtsam/inference/BayesTreeCliqueBase.h +++ b/gtsam/inference/BayesTreeCliqueBase.h @@ -217,10 +217,14 @@ namespace gtsam { void deleteCachedShorcuts(); /** return cached shortcut of the clique */ - const boost::optional > cachedShortcut() const { + const boost::optional >& cachedShortcut() const { return cachedShortcut_; } + const boost::optional >& cachedSeparatorMarginal() const { + return cachedSeparatorMarginal_; + } + friend class BayesTree ; protected: