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

#include <SymbolicConditional.h>

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

Public Types

typedef Conditional< BaseFactor, ThisBaseConditional
 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< Thisshared_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< Thisshared_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_iteratorFrontals
 
typedef boost::iterator_range< typename SymbolicFactor::const_iteratorParents
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Friends

class boost::serialization::access
 

Standard Constructors

const_iterator to keys

 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 KeyVectorkeys () const
 Access the factor's involved variable keys. More...
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 
KeyVectorkeys ()
 
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_tnrFrontals ()
 
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_
 

Detailed Description

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.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

gtsam::SymbolicConditional::SymbolicConditional ( )
inline

Empty Constructor to make serialization possible

Definition at line 52 of file SymbolicConditional.h.

gtsam::SymbolicConditional::SymbolicConditional ( Key  j)
inline

No parents

Definition at line 55 of file SymbolicConditional.h.

gtsam::SymbolicConditional::SymbolicConditional ( Key  j,
Key  parent 
)
inline

Single parent

Definition at line 58 of file SymbolicConditional.h.

gtsam::SymbolicConditional::SymbolicConditional ( Key  j,
Key  parent1,
Key  parent2 
)
inline

Two parents

Definition at line 61 of file SymbolicConditional.h.

gtsam::SymbolicConditional::SymbolicConditional ( Key  j,
Key  parent1,
Key  parent2,
Key  parent3 
)
inline

Three parents

Definition at line 64 of file SymbolicConditional.h.

gtsam::SymbolicConditional::~SymbolicConditional ( )
inlineoverride

Definition at line 98 of file SymbolicConditional.h.

Member Function Documentation

SymbolicFactor::shared_ptr gtsam::SymbolicConditional::clone ( ) const
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.

template<typename ITERATOR >
static SymbolicConditional gtsam::SymbolicConditional::FromIterators ( ITERATOR  firstKey,
ITERATOR  lastKey,
size_t  nrFrontals 
)
inlinestatic

Named constructor from an arbitrary number of keys and frontals

Definition at line 68 of file SymbolicConditional.h.

template<typename ITERATOR >
static SymbolicConditional::shared_ptr gtsam::SymbolicConditional::FromIteratorsShared ( ITERATOR  firstKey,
ITERATOR  lastKey,
size_t  nrFrontals 
)
inlinestatic

Named constructor from an arbitrary number of keys and frontals

Definition at line 78 of file SymbolicConditional.h.

template<class CONTAINER >
static SymbolicConditional gtsam::SymbolicConditional::FromKeys ( const CONTAINER &  keys,
size_t  nrFrontals 
)
inlinestatic

Named constructor from an arbitrary number of keys and frontals

Definition at line 88 of file SymbolicConditional.h.

template<class CONTAINER >
static SymbolicConditional::shared_ptr gtsam::SymbolicConditional::FromKeysShared ( const CONTAINER &  keys,
size_t  nrFrontals 
)
inlinestatic

Named constructor from an arbitrary number of keys and frontals

Definition at line 94 of file SymbolicConditional.h.

void gtsam::SymbolicConditional::print ( const std::string &  str = "",
const KeyFormatter keyFormatter = DefaultKeyFormatter 
) const
overridevirtual

Print with optional formatter

Reimplemented from gtsam::Factor.

Definition at line 26 of file SymbolicConditional.cpp.

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

Definition at line 121 of file SymbolicConditional.h.

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Serialization function

Definition at line 119 of file SymbolicConditional.h.


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


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