Public Types | Private Member Functions | Friends | List of all members
gtsam::SymbolicBayesNet Class Reference

#include <SymbolicBayesNet.h>

Inheritance diagram for gtsam::SymbolicBayesNet:
Inheritance graph
[legend]

Public Types

typedef FactorGraph< SymbolicConditionalBase
 
typedef SymbolicConditional ConditionalType
 
typedef boost::shared_ptr< Thisshared_ptr
 
typedef boost::shared_ptr< ConditionalTypesharedConditional
 
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< SymbolicConditionalsharedFactor
 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
 
sharedFactorat (size_t i)
 
const sharedFactor operator[] (size_t i) const
 
sharedFactoroperator[] (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< sharedFactorfactors_
 

Detailed Description

Symbolic Bayes Net

Definition at line 30 of file SymbolicBayesNet.h.

Member Typedef Documentation

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.

Definition at line 38 of file SymbolicBayesNet.h.

Definition at line 35 of file SymbolicBayesNet.h.

Constructor & Destructor Documentation

gtsam::SymbolicBayesNet::SymbolicBayesNet ( )
inline

Construct empty factor graph

Definition at line 44 of file SymbolicBayesNet.h.

template<typename ITERATOR >
gtsam::SymbolicBayesNet::SymbolicBayesNet ( ITERATOR  firstConditional,
ITERATOR  lastConditional 
)
inline

Construct from iterator over conditionals

Definition at line 48 of file SymbolicBayesNet.h.

template<class CONTAINER >
gtsam::SymbolicBayesNet::SymbolicBayesNet ( const CONTAINER &  conditionals)
inlineexplicit

Construct from container of factors (shared_ptr or plain objects)

Definition at line 52 of file SymbolicBayesNet.h.

template<class DERIVEDCONDITIONAL >
gtsam::SymbolicBayesNet::SymbolicBayesNet ( const FactorGraph< DERIVEDCONDITIONAL > &  graph)
inline

Implicit copy/downcast constructor to override explicit template container constructor

Definition at line 56 of file SymbolicBayesNet.h.

virtual gtsam::SymbolicBayesNet::~SymbolicBayesNet ( )
inlinevirtual

Destructor.

Definition at line 59 of file SymbolicBayesNet.h.

Member Function Documentation

bool gtsam::SymbolicBayesNet::equals ( const This bn,
double  tol = 1e-9 
) const

Check equality

Definition at line 32 of file SymbolicBayesNet.cpp.

GTSAM_EXPORT void gtsam::SymbolicBayesNet::print ( const std::string &  s = "SymbolicBayesNet",
const KeyFormatter formatter = DefaultKeyFormatter 
) const
inlineoverridevirtual

print

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.

template<class ARCHIVE >
void gtsam::SymbolicBayesNet::serialize ( ARCHIVE &  ar,
const unsigned  int 
)
inlineprivate

Definition at line 89 of file SymbolicBayesNet.h.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Serialization function

Definition at line 87 of file SymbolicBayesNet.h.


The documentation for this class was generated from the following files:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:30