Added access functions for cachedSeparatorMarginals

release/4.3a0
Alex Cunningham 2012-09-21 20:02:26 +00:00
parent 1985758d35
commit 0e60b8cc4d
1 changed files with 5 additions and 1 deletions

View File

@ -217,10 +217,14 @@ namespace gtsam {
void deleteCachedShorcuts(); void deleteCachedShorcuts();
/** return cached shortcut of the clique */ /** return cached shortcut of the clique */
const boost::optional<BayesNet<ConditionalType> > cachedShortcut() const { const boost::optional<BayesNet<ConditionalType> >& cachedShortcut() const {
return cachedShortcut_; return cachedShortcut_;
} }
const boost::optional<FactorGraph<FactorType> >& cachedSeparatorMarginal() const {
return cachedSeparatorMarginal_;
}
friend class BayesTree<ConditionalType, DerivedType> ; friend class BayesTree<ConditionalType, DerivedType> ;
protected: protected: