#include <SymbolicConditional.h>
Public Types | |
typedef Conditional< BaseFactor, This > | BaseConditional |
Typedef to the factor base class. More... | |
typedef SymbolicFactor | BaseFactor |
Typedef to this class. More... | |
typedef BaseFactor::const_iterator | const_iterator |
iterator to keys More... | |
typedef BaseFactor::iterator | iterator |
Boost shared_ptr to this class. More... | |
typedef boost::shared_ptr< This > | shared_ptr |
Typedef to the conditional base class. More... | |
typedef SymbolicConditional | This |
Public Types inherited from gtsam::SymbolicFactor | |
typedef Factor | Base |
typedef SymbolicConditional | ConditionalType |
typedef boost::shared_ptr< This > | shared_ptr |
typedef SymbolicFactor | This |
Public Types inherited from gtsam::Factor | |
typedef KeyVector::const_iterator | const_iterator |
Const iterator over keys. More... | |
typedef KeyVector::iterator | iterator |
Iterator over keys. More... | |
Public Types inherited from gtsam::Conditional< SymbolicFactor, SymbolicConditional > | |
typedef boost::iterator_range< typename SymbolicFactor::const_iterator > | Frontals |
typedef boost::iterator_range< typename SymbolicFactor::const_iterator > | Parents |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Friends | |
class | boost::serialization::access |
Standard Constructors | |
SymbolicConditional () | |
SymbolicConditional (Key j) | |
SymbolicConditional (Key j, Key parent) | |
SymbolicConditional (Key j, Key parent1, Key parent2) | |
SymbolicConditional (Key j, Key parent1, Key parent2, Key parent3) | |
~SymbolicConditional () override | |
SymbolicFactor::shared_ptr | clone () const |
Copy this object as its actual derived type. More... | |
template<typename ITERATOR > | |
static SymbolicConditional | FromIterators (ITERATOR firstKey, ITERATOR lastKey, size_t nrFrontals) |
template<typename ITERATOR > | |
static SymbolicConditional::shared_ptr | FromIteratorsShared (ITERATOR firstKey, ITERATOR lastKey, size_t nrFrontals) |
template<class CONTAINER > | |
static SymbolicConditional | FromKeys (const CONTAINER &keys, size_t nrFrontals) |
template<class CONTAINER > | |
static SymbolicConditional::shared_ptr | FromKeysShared (const CONTAINER &keys, size_t nrFrontals) |
Testable | |
void | print (const std::string &str="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const override |
bool | equals (const This &c, double tol=1e-9) const |
Additional Inherited Members | |
Public Member Functions inherited from gtsam::SymbolicFactor | |
SymbolicFactor () | |
SymbolicFactor (Key j) | |
SymbolicFactor (Key j1, Key j2) | |
SymbolicFactor (Key j1, Key j2, Key j3) | |
SymbolicFactor (Key j1, Key j2, Key j3, Key j4) | |
SymbolicFactor (Key j1, Key j2, Key j3, Key j4, Key j5) | |
SymbolicFactor (Key j1, Key j2, Key j3, Key j4, Key j5, Key j6) | |
SymbolicFactor (const Factor &factor) | |
virtual | ~SymbolicFactor () |
SymbolicFactor::shared_ptr | clone () const |
Copy this object as its actual derived type. More... | |
bool | empty () const |
std::pair< boost::shared_ptr< SymbolicConditional >, boost::shared_ptr< SymbolicFactor > > | eliminate (const Ordering &keys) const |
bool | equals (const This &other, double tol=1e-9) const |
void | print (const std::string &s="SymbolicFactor", const KeyFormatter &formatter=DefaultKeyFormatter) const override |
print More... | |
void | printKeys (const std::string &s="SymbolicFactor", const KeyFormatter &formatter=DefaultKeyFormatter) const override |
print only keys More... | |
Public Member Functions inherited from gtsam::Factor | |
virtual | ~Factor ()=default |
Default destructor. More... | |
Key | front () const |
First key. More... | |
Key | back () const |
Last key. More... | |
const_iterator | find (Key key) const |
find More... | |
const KeyVector & | keys () const |
Access the factor's involved variable keys. More... | |
const_iterator | begin () const |
const_iterator | end () const |
size_t | size () const |
KeyVector & | keys () |
iterator | begin () |
iterator | end () |
Public Member Functions inherited from gtsam::Conditional< SymbolicFactor, SymbolicConditional > | |
void | print (const std::string &s="Conditional", const KeyFormatter &formatter=DefaultKeyFormatter) const |
bool | equals (const This &c, double tol=1e-9) const |
size_t | nrFrontals () const |
size_t | nrParents () const |
Key | firstFrontalKey () const |
Frontals | frontals () const |
Parents | parents () const |
SymbolicFactor::const_iterator | beginFrontals () const |
SymbolicFactor::const_iterator | endFrontals () const |
SymbolicFactor::const_iterator | beginParents () const |
SymbolicFactor::const_iterator | endParents () const |
size_t & | nrFrontals () |
SymbolicFactor::iterator | beginFrontals () |
SymbolicFactor::iterator | endFrontals () |
SymbolicFactor::iterator | beginParents () |
SymbolicFactor::iterator | endParents () |
Static Public Member Functions inherited from gtsam::SymbolicFactor | |
template<typename KEYITERATOR > | |
static SymbolicFactor | FromIterators (KEYITERATOR beginKey, KEYITERATOR endKey) |
template<typename KEYITERATOR > | |
static SymbolicFactor::shared_ptr | FromIteratorsShared (KEYITERATOR beginKey, KEYITERATOR endKey) |
template<class CONTAINER > | |
static SymbolicFactor | FromKeys (const CONTAINER &keys) |
template<class CONTAINER > | |
static SymbolicFactor::shared_ptr | FromKeysShared (const CONTAINER &keys) |
Protected Member Functions inherited from gtsam::Factor | |
Factor () | |
template<typename CONTAINER > | |
Factor (const CONTAINER &keys) | |
template<typename ITERATOR > | |
Factor (ITERATOR first, ITERATOR last) | |
bool | equals (const This &other, double tol=1e-9) const |
check equality More... | |
Protected Member Functions inherited from gtsam::Conditional< SymbolicFactor, SymbolicConditional > | |
Conditional () | |
Conditional (size_t nrFrontals) | |
Static Protected Member Functions inherited from gtsam::Factor | |
template<typename CONTAINER > | |
static Factor | FromKeys (const CONTAINER &keys) |
template<typename ITERATOR > | |
static Factor | FromIterators (ITERATOR first, ITERATOR last) |
Protected Attributes inherited from gtsam::Factor | |
KeyVector | keys_ |
The keys involved in this factor. More... | |
Protected Attributes inherited from gtsam::Conditional< SymbolicFactor, SymbolicConditional > | |
size_t | nrFrontals_ |
SymbolicConditional is a conditional with keys but no probability data, produced by symbolic elimination of SymbolicFactor.
It is also a SymbolicFactor, and thus derives from it. It derives also from Conditional<This>, which is a generic interface class for conditionals.
Definition at line 36 of file SymbolicConditional.h.
Typedef to the factor base class.
Definition at line 43 of file SymbolicConditional.h.
Typedef to this class.
Definition at line 42 of file SymbolicConditional.h.
iterator to keys
Definition at line 46 of file SymbolicConditional.h.
Boost shared_ptr to this class.
Definition at line 45 of file SymbolicConditional.h.
typedef boost::shared_ptr<This> gtsam::SymbolicConditional::shared_ptr |
Typedef to the conditional base class.
Definition at line 44 of file SymbolicConditional.h.
Definition at line 41 of file SymbolicConditional.h.
|
inline |
Empty Constructor to make serialization possible
Definition at line 52 of file SymbolicConditional.h.
|
inline |
No parents
Definition at line 55 of file SymbolicConditional.h.
Single parent
Definition at line 58 of file SymbolicConditional.h.
Two parents
Definition at line 61 of file SymbolicConditional.h.
|
inline |
Three parents
Definition at line 64 of file SymbolicConditional.h.
|
inlineoverride |
Definition at line 98 of file SymbolicConditional.h.
|
inline |
Copy this object as its actual derived type.
Definition at line 101 of file SymbolicConditional.h.
bool gtsam::SymbolicConditional::equals | ( | const This & | c, |
double | tol = 1e-9 |
||
) | const |
Check equality
Definition at line 32 of file SymbolicConditional.cpp.
|
inlinestatic |
Named constructor from an arbitrary number of keys and frontals
Definition at line 68 of file SymbolicConditional.h.
|
inlinestatic |
Named constructor from an arbitrary number of keys and frontals
Definition at line 78 of file SymbolicConditional.h.
|
inlinestatic |
Named constructor from an arbitrary number of keys and frontals
Definition at line 88 of file SymbolicConditional.h.
|
inlinestatic |
Named constructor from an arbitrary number of keys and frontals
Definition at line 94 of file SymbolicConditional.h.
|
overridevirtual |
Print with optional formatter
Reimplemented from gtsam::Factor.
Definition at line 26 of file SymbolicConditional.cpp.
|
inlineprivate |
Definition at line 121 of file SymbolicConditional.h.
|
friend |
Serialization function
Definition at line 119 of file SymbolicConditional.h.