#include <Conditional.h>
Public Types | |
typedef boost::iterator_range< typename FACTOR::const_iterator > | Frontals |
typedef boost::iterator_range< typename FACTOR::const_iterator > | Parents |
Protected Attributes | |
size_t | nrFrontals_ |
Private Types | |
typedef Conditional< FACTOR, DERIVEDCONDITIONAL > | This |
Typedef to this class. More... | |
Standard Constructors | |
Conditional () | |
Conditional (size_t nrFrontals) | |
Testable | |
void | print (const std::string &s="Conditional", const KeyFormatter &formatter=DefaultKeyFormatter) const |
bool | equals (const This &c, double tol=1e-9) const |
Standard Interface | |
size_t | nrFrontals () const |
size_t | nrParents () const |
Key | firstFrontalKey () const |
Frontals | frontals () const |
Parents | parents () const |
FACTOR::const_iterator | beginFrontals () const |
FACTOR::const_iterator | endFrontals () const |
FACTOR::const_iterator | beginParents () const |
FACTOR::const_iterator | endParents () const |
Advanced Interface | |
class | boost::serialization::access |
size_t & | nrFrontals () |
FACTOR::iterator | beginFrontals () |
FACTOR::iterator | endFrontals () |
FACTOR::iterator | beginParents () |
FACTOR::iterator | endParents () |
FACTOR & | asFactor () |
const FACTOR & | asFactor () const |
template<class ARCHIVE > | |
void | serialize (ARCHIVE &ar, const unsigned int) |
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.
Definition at line 40 of file Conditional.h.
typedef boost::iterator_range<typename FACTOR::const_iterator> gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::Frontals |
View of the frontal keys (call frontals())
Definition at line 52 of file Conditional.h.
typedef boost::iterator_range<typename FACTOR::const_iterator> gtsam::Conditional< FACTOR, DERIVEDCONDITIONAL >::Parents |
View of the separator keys (call parents())
Definition at line 55 of file Conditional.h.
|
private |
Typedef to this class.
Definition at line 48 of file Conditional.h.
|
inlineprotected |
Empty Constructor to make serialization possible
Definition at line 62 of file Conditional.h.
|
inlineprotected |
Constructor
Definition at line 65 of file Conditional.h.
|
inlineprivate |
Definition at line 137 of file Conditional.h.
|
inlineprivate |
Definition at line 140 of file Conditional.h.
|
inline |
Iterator pointing to first frontal key.
Definition at line 105 of file Conditional.h.
|
inline |
Mutable iterator pointing to first frontal key.
Definition at line 124 of file Conditional.h.
|
inline |
Iterator pointing to the first parent key.
Definition at line 111 of file Conditional.h.
|
inline |
Mutable iterator pointing to the first parent key.
Definition at line 130 of file Conditional.h.
|
inline |
Iterator pointing past the last frontal key.
Definition at line 108 of file Conditional.h.
|
inline |
Mutable iterator pointing past the last frontal key.
Definition at line 127 of file Conditional.h.
|
inline |
Iterator pointing past the last parent key.
Definition at line 114 of file Conditional.h.
|
inline |
Mutable iterator pointing past the last parent key.
Definition at line 133 of file Conditional.h.
bool gtsam::Conditional< FACTOR, DERIVEDFACTOR >::equals | ( | const This & | c, |
double | tol = 1e-9 |
||
) | const |
check equality
Definition at line 42 of file Conditional-inst.h.
|
inline |
Convenience function to get the first frontal key
Definition at line 91 of file Conditional.h.
|
inline |
return a view of the frontal keys
Definition at line 99 of file Conditional.h.
|
inline |
return the number of frontals
Definition at line 85 of file Conditional.h.
|
inline |
Mutable version of nrFrontals
Definition at line 121 of file Conditional.h.
|
inline |
return the number of parents
Definition at line 88 of file Conditional.h.
|
inline |
return a view of the parent keys
Definition at line 102 of file Conditional.h.
void gtsam::Conditional< FACTOR, DERIVEDFACTOR >::print | ( | const std::string & | s = "Conditional< FACTOR, DERIVEDCONDITIONAL >" , |
const KeyFormatter & | formatter = DefaultKeyFormatter |
||
) | const |
print with optional formatter
Definition at line 29 of file Conditional-inst.h.
|
inlineprivate |
Definition at line 145 of file Conditional.h.
|
friend |
Serialization function
Definition at line 143 of file Conditional.h.
|
protected |
The first nrFrontal variables are frontal and the rest are parents.
Definition at line 44 of file Conditional.h.