#include <SymbolicBayesNet.h>
Public Types | |
typedef FactorGraph< SymbolicConditional > | Base |
typedef SymbolicConditional | ConditionalType |
typedef boost::shared_ptr< This > | shared_ptr |
typedef boost::shared_ptr< ConditionalType > | sharedConditional |
typedef SymbolicBayesNet | This |
Public Types inherited from gtsam::FactorGraph< SymbolicConditional > | |
typedef FastVector< sharedFactor >::const_iterator | const_iterator |
typedef SymbolicConditional | FactorType |
factor type More... | |
typedef FastVector< sharedFactor >::iterator | iterator |
typedef boost::shared_ptr< SymbolicConditional > | sharedFactor |
Shared pointer to a factor. More... | |
typedef sharedFactor | value_type |
Private Member Functions | |
template<class ARCHIVE > | |
void | serialize (ARCHIVE &ar, const unsigned int) |
Friends | |
class | boost::serialization::access |
Standard Constructors | |
SymbolicBayesNet () | |
template<typename ITERATOR > | |
SymbolicBayesNet (ITERATOR firstConditional, ITERATOR lastConditional) | |
template<class CONTAINER > | |
SymbolicBayesNet (const CONTAINER &conditionals) | |
template<class DERIVEDCONDITIONAL > | |
SymbolicBayesNet (const FactorGraph< DERIVEDCONDITIONAL > &graph) | |
virtual | ~SymbolicBayesNet () |
Destructor. More... | |
Testable | |
GTSAM_EXPORT bool | equals (const This &bn, double tol=1e-9) const |
GTSAM_EXPORT void | print (const std::string &s="SymbolicBayesNet", const KeyFormatter &formatter=DefaultKeyFormatter) const override |
print More... | |
Standard Interface | |
GTSAM_EXPORT void | saveGraph (const std::string &s, const KeyFormatter &keyFormatter=DefaultKeyFormatter) const |
Additional Inherited Members | |
Public Member Functions inherited from gtsam::FactorGraph< SymbolicConditional > | |
virtual | ~FactorGraph ()=default |
Default destructor. More... | |
void | reserve (size_t size) |
IsDerived< DERIVEDFACTOR > | push_back (boost::shared_ptr< DERIVEDFACTOR > factor) |
Add a factor directly using a shared_ptr. More... | |
IsDerived< DERIVEDFACTOR > | push_back (const DERIVEDFACTOR &factor) |
IsDerived< DERIVEDFACTOR > | emplace_shared (Args &&...args) |
Emplace a shared pointer to factor of given type. More... | |
IsDerived< DERIVEDFACTOR > | add (boost::shared_ptr< DERIVEDFACTOR > factor) |
add is a synonym for push_back. More... | |
std::enable_if< std::is_base_of< FactorType, DERIVEDFACTOR >::value, boost::assign::list_inserter< RefCallPushBack< This > > >::type | operator+= (boost::shared_ptr< DERIVEDFACTOR > factor) |
+= works well with boost::assign list inserter. More... | |
HasDerivedElementType< ITERATOR > | push_back (ITERATOR firstFactor, ITERATOR lastFactor) |
HasDerivedValueType< ITERATOR > | push_back (ITERATOR firstFactor, ITERATOR lastFactor) |
Push back many factors with an iterator (factors are copied) More... | |
HasDerivedElementType< CONTAINER > | push_back (const CONTAINER &container) |
HasDerivedValueType< CONTAINER > | push_back (const CONTAINER &container) |
Push back non-pointer objects in a container (factors are copied). More... | |
void | add (const FACTOR_OR_CONTAINER &factorOrContainer) |
boost::assign::list_inserter< CRefCallPushBack< This > > | operator+= (const FACTOR_OR_CONTAINER &factorOrContainer) |
std::enable_if< std::is_base_of< This, typename CLIQUE::FactorGraphType >::value >::type | push_back (const BayesTree< CLIQUE > &bayesTree) |
FactorIndices | add_factors (const CONTAINER &factors, bool useEmptySlots=false) |
bool | equals (const This &fg, double tol=1e-9) const |
size_t | size () const |
bool | empty () const |
const sharedFactor | at (size_t i) const |
sharedFactor & | at (size_t i) |
const sharedFactor | operator[] (size_t i) const |
sharedFactor & | operator[] (size_t i) |
const_iterator | begin () const |
const_iterator | end () const |
sharedFactor | front () const |
sharedFactor | back () const |
iterator | begin () |
iterator | end () |
void | resize (size_t size) |
void | remove (size_t i) |
void | replace (size_t index, sharedFactor factor) |
iterator | erase (iterator item) |
iterator | erase (iterator first, iterator last) |
size_t | nrFactors () const |
KeySet | keys () const |
KeyVector | keyVector () const |
bool | exists (size_t idx) const |
Protected Member Functions inherited from gtsam::FactorGraph< SymbolicConditional > | |
FactorGraph () | |
FactorGraph (ITERATOR firstFactor, ITERATOR lastFactor) | |
FactorGraph (const CONTAINER &factors) | |
Protected Attributes inherited from gtsam::FactorGraph< SymbolicConditional > | |
FastVector< sharedFactor > | factors_ |
Symbolic Bayes Net
Definition at line 30 of file SymbolicBayesNet.h.
Definition at line 34 of file SymbolicBayesNet.h.
Definition at line 36 of file SymbolicBayesNet.h.
typedef boost::shared_ptr<This> gtsam::SymbolicBayesNet::shared_ptr |
Definition at line 37 of file SymbolicBayesNet.h.
typedef boost::shared_ptr<ConditionalType> gtsam::SymbolicBayesNet::sharedConditional |
Definition at line 38 of file SymbolicBayesNet.h.
Definition at line 35 of file SymbolicBayesNet.h.
|
inline |
Construct empty factor graph
Definition at line 44 of file SymbolicBayesNet.h.
|
inline |
Construct from iterator over conditionals
Definition at line 48 of file SymbolicBayesNet.h.
|
inlineexplicit |
Construct from container of factors (shared_ptr or plain objects)
Definition at line 52 of file SymbolicBayesNet.h.
|
inline |
Implicit copy/downcast constructor to override explicit template container constructor
Definition at line 56 of file SymbolicBayesNet.h.
|
inlinevirtual |
Destructor.
Definition at line 59 of file SymbolicBayesNet.h.
bool gtsam::SymbolicBayesNet::equals | ( | const This & | bn, |
double | tol = 1e-9 |
||
) | const |
Check equality
Definition at line 32 of file SymbolicBayesNet.cpp.
|
inlineoverridevirtual |
Reimplemented from gtsam::FactorGraph< SymbolicConditional >.
Definition at line 70 of file SymbolicBayesNet.h.
void gtsam::SymbolicBayesNet::saveGraph | ( | const std::string & | s, |
const KeyFormatter & | keyFormatter = DefaultKeyFormatter |
||
) | const |
Definition at line 38 of file SymbolicBayesNet.cpp.
|
inlineprivate |
Definition at line 89 of file SymbolicBayesNet.h.
|
friend |
Serialization function
Definition at line 87 of file SymbolicBayesNet.h.