21 #include <boost/shared_ptr.hpp> 33 template<
class CONDITIONAL>
51 template<
typename ITERATOR>
52 BayesNet(ITERATOR firstConditional, ITERATOR lastConditional) : Base(firstConditional, lastConditional) {}
62 const std::string&
s =
"BayesNet",
boost::shared_ptr< CONDITIONAL > sharedConditional
A shared pointer to a conditional.
static const KeyFormatter DefaultKeyFormatter
FactorGraph< CONDITIONAL > Base
const KeyFormatter & formatter
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
BayesNet(ITERATOR firstConditional, ITERATOR lastConditional)
void saveGraph(const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
void print(const std::string &s="BayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override