gtsam  4.0.0
gtsam
gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL > Class Template Reference

Detailed Description

template<class FACTOR, class DERIVEDCONDITIONAL>
class gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >

TODO: Update comments.

The following comments are out of date!!!

Base class for conditional densities, templated on KEY type. This class provides storage for the keys involved in a conditional, and iterators and access to the frontal and separator keys.

Derived classes must redefine the Factor and shared_ptr typedefs to refer to the associated factor type and shared_ptr type of the derived class. See IndexConditional and GaussianConditional for examples.

Standard Constructors

 Conditional ()
 Empty Constructor to make serialization possible.
 
 Conditional (size_t nrFrontals)
 Constructor.
 

Testable

void print (const std::string &s="Conditional", const KeyFormatter &formatter=DefaultKeyFormatter) const
 print with optional formatter
 
bool equals (const This &c, double tol=1e-9) const
 check equality
 

Standard Interface

size_t nrFrontals () const
 return the number of frontals
 
size_t nrParents () const
 return the number of parents
 
Key firstFrontalKey () const
 Convenience function to get the first frontal key.
 
Frontals frontals () const
 return a view of the frontal keys
 
Parents parents () const
 return a view of the parent keys
 
FACTOR::const_iterator beginFrontals () const
 Iterator pointing to first frontal key. More...
 
FACTOR::const_iterator endFrontals () const
 Iterator pointing past the last frontal key. More...
 
FACTOR::const_iterator beginParents () const
 Iterator pointing to the first parent key. More...
 
FACTOR::const_iterator endParents () const
 Iterator pointing past the last parent key. More...
 

Advanced Interface

class boost::serialization::access
 Serialization function.
 
size_t & nrFrontals ()
 Mutable version of nrFrontals.
 
FACTOR::iterator beginFrontals ()
 Mutable iterator pointing to first frontal key. More...
 
FACTOR::iterator endFrontals ()
 Mutable iterator pointing past the last frontal key. More...
 
FACTOR::iterator beginParents ()
 Mutable iterator pointing to the first parent key. More...
 
FACTOR::iterator endParents ()
 Mutable iterator pointing past the last parent key. More...
 

Public Types

typedef boost::iterator_range< typename FACTOR::const_iterator > Frontals
 View of the frontal keys (call frontals())
 
typedef boost::iterator_range< typename FACTOR::const_iterator > Parents
 View of the separator keys (call parents())
 

Protected Attributes

size_t nrFrontals_
 The first nrFrontal variables are frontal and the rest are parents. More...
 

Member Function Documentation

◆ beginFrontals() [1/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::const_iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::beginFrontals ( ) const
inline

Iterator pointing to first frontal key.

◆ beginFrontals() [2/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::beginFrontals ( )
inline

Mutable iterator pointing to first frontal key.

◆ beginParents() [1/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::const_iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::beginParents ( ) const
inline

Iterator pointing to the first parent key.

◆ beginParents() [2/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::beginParents ( )
inline

Mutable iterator pointing to the first parent key.

◆ endFrontals() [1/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::const_iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::endFrontals ( ) const
inline

Iterator pointing past the last frontal key.

◆ endFrontals() [2/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::endFrontals ( )
inline

Mutable iterator pointing past the last frontal key.

◆ endParents() [1/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::const_iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::endParents ( ) const
inline

Iterator pointing past the last parent key.

◆ endParents() [2/2]

template<class FACTOR, class DERIVEDCONDITIONAL>
FACTOR::iterator gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::endParents ( )
inline

Mutable iterator pointing past the last parent key.

Member Data Documentation

◆ nrFrontals_

template<class FACTOR, class DERIVEDCONDITIONAL>
size_t gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::nrFrontals_
protected

The first nrFrontal variables are frontal and the rest are parents.


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