Added non-recursive version of BayesTreeCliqueBase::deleteCachedShortcutsNonRecursive

release/4.3a0
Richard Roberts 2013-03-18 19:28:01 +00:00
parent 229e2d9195
commit 467cd225af
1 changed files with 4 additions and 2 deletions

View File

@ -201,8 +201,7 @@ namespace gtsam {
void deleteCachedShortcuts();
const boost::optional<FactorGraph<FactorType> >& cachedSeparatorMarginal() const {
return cachedSeparatorMarginal_;
}
return cachedSeparatorMarginal_; }
friend class BayesTree<ConditionalType, DerivedType> ;
@ -225,6 +224,9 @@ namespace gtsam {
std::vector<Index> shortcut_indices(derived_ptr B,
const FactorGraph<FactorType>& p_Cp_B) const;
/** Non-recursive delete cached shortcuts and marginals - internal only. */
void deleteCachedShortcutsNonRecursive() { cachedSeparatorMarginal_ = boost::none; }
private:
/**