/** * @file SymbolicBayesChain.cpp * @brief Chordal Bayes Net, the result of eliminating a factor graph * @author Frank Dellaert */ #include #include // trick from some reading group #define FOREACH_PAIR( KEY, VAL, COL) BOOST_FOREACH (boost::tie(KEY,VAL),COL) #include "SymbolicBayesChain.h" using namespace std; namespace gtsam { typedef pair pp; /* ************************************************************************* */ SymbolicBayesChain::SymbolicBayesChain(const std::map& nodes) { BOOST_FOREACH(pp p, nodes) { keys_.push_front(p.first); nodes_.insert(p); } } /* ************************************************************************* */ } // namespace gtsam