gtsam  4.0.0
gtsam
gtsam::ClusterTree< GRAPH > Class Template Reference

Detailed Description

template<class GRAPH>
class gtsam::ClusterTree< GRAPH >

A cluster-tree is associated with a factor graph and is defined as in Koller-Friedman: each node k represents a subset \( C_k \sub X \), and the tree is family preserving, in that each factor \( f_i \) is associated with a single cluster and \( scope(f_i) \sub C_k \).

+ Inheritance diagram for gtsam::ClusterTree< GRAPH >:

Standard Constructors

 ClusterTree (const This &other)
 Copy constructor - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned. More...
 

Testable

void print (const std::string &s="", const KeyFormatter &keyFormatter=DefaultKeyFormatter) const
 Print the cluster tree.
 

Advanced Interface

void addRoot (const boost::shared_ptr< Cluster > &cluster)
 
void addChildrenAsRoots (const boost::shared_ptr< Cluster > &cluster)
 
size_t nrRoots () const
 
const FastVector< sharedNode > & roots () const
 Return the set of roots (one for a tree, multiple for a forest)
 
const Clusteroperator[] (size_t i) const
 

Details

Thisoperator= (const This &other)
 Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned. More...
 

Public Member Functions

 GTSAM_CONCEPT_TESTABLE_TYPE (FactorType)
 concept check
 
 ClusterTree ()
 Default constructor.
 

Public Types

typedef GRAPH FactorGraphType
 The factor graph type.
 
typedef ClusterTree< GRAPH > This
 This class.
 
typedef boost::shared_ptr< Thisshared_ptr
 Shared pointer to this class.
 
typedef GRAPH::FactorType FactorType
 The type of factors.
 
typedef boost::shared_ptr< FactorTypesharedFactor
 Shared pointer to a factor.
 
typedef boost::shared_ptr< ClustersharedCluster
 Shared pointer to Cluster.
 
typedef Cluster Node
 
typedef sharedCluster sharedNode
 

Classes

struct  Cluster
 A Cluster is just a collection of factors. More...
 

Protected Attributes

FastVector< sharedNode > roots_
 

Constructor & Destructor Documentation

◆ ClusterTree()

template<class GRAPH>
gtsam::ClusterTree< GRAPH >::ClusterTree ( const This other)
inlineprotected

Copy constructor - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.

Member Function Documentation

◆ operator=()

template<class GRAPH >
ClusterTree< GRAPH > & gtsam::ClusterTree< GRAPH >::operator= ( const This other)
protected

Assignment operator - makes a deep copy of the tree structure, but only pointers to factors are copied, factors are not cloned.


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