aGrUM  0.13.2
gum::prm::StructuredInference< GUM_SCALAR >::RGData Struct Reference

Private structure to represent data about a reduced graph. More...

+ Collaboration diagram for gum::prm::StructuredInference< GUM_SCALAR >::RGData:

Public Attributes

UndiGraph reducedGraph
 The reduced graph. More...
 
NodeProperty< Sizemods
 Mapping between NodeId and modalities. More...
 
Bijection< const DiscreteVariable *, NodeIdvar2node
 Mapping between DiscreteVariable and NodeId. More...
 
Set< Potential< GUM_SCALAR > * > pool
 The pool of potentials matching the reduced graph. More...
 
List< NodeSetpartial_order
 Partial order used for triangulation, first is outputs nodes, second query nodes. More...
 

Public Member Functions

 RGData ()
 Default constructor. More...
 
 ~RGData ()
 Destructor. More...
 
NodeSetoutputs ()
 Returns the set of outputs nodes (which will be eliminated). More...
 
NodeSetqueries ()
 Returns the set of query nodes (which will not be eliminated). More...
 

Detailed Description

template<typename GUM_SCALAR>
struct gum::prm::StructuredInference< GUM_SCALAR >::RGData

Private structure to represent data about a reduced graph.

Definition at line 130 of file structuredInference.h.

Constructor & Destructor Documentation

template<typename GUM_SCALAR >
gum::prm::StructuredInference< GUM_SCALAR >::RGData::RGData ( )

Default constructor.

Definition at line 805 of file structuredInference_tpl.h.

805  {
806  GUM_CONSTRUCTOR(StructuredInference< GUM_SCALAR >::RGData);
807  partial_order.insert(NodeSet());
808  partial_order.insert(NodeSet());
809  }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
template<typename GUM_SCALAR >
INLINE gum::prm::StructuredInference< GUM_SCALAR >::RGData::~RGData ( )

Destructor.

Definition at line 995 of file structuredInference_tpl.h.

995  {
996  GUM_DESTRUCTOR(StructuredInference< GUM_SCALAR >::RGData);
997  }

Member Function Documentation

template<typename GUM_SCALAR>
NodeSet& gum::prm::StructuredInference< GUM_SCALAR >::RGData::outputs ( )
inline

Returns the set of outputs nodes (which will be eliminated).

Definition at line 147 of file structuredInference.h.

Referenced by gum::prm::StructuredInference< GUM_SCALAR >::__addEdgesInReducedGraph(), and gum::prm::StructuredInference< GUM_SCALAR >::__buildReduceGraph().

147 { return partial_order[0]; }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...

+ Here is the caller graph for this function:

template<typename GUM_SCALAR>
NodeSet& gum::prm::StructuredInference< GUM_SCALAR >::RGData::queries ( )
inline

Returns the set of query nodes (which will not be eliminated).

Definition at line 149 of file structuredInference.h.

Referenced by gum::prm::StructuredInference< GUM_SCALAR >::__buildReduceGraph().

149 { return partial_order[1]; }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...

+ Here is the caller graph for this function:

Member Data Documentation

template<typename GUM_SCALAR>
NodeProperty< Size > gum::prm::StructuredInference< GUM_SCALAR >::RGData::mods
template<typename GUM_SCALAR>
List< NodeSet > gum::prm::StructuredInference< GUM_SCALAR >::RGData::partial_order

Partial order used for triangulation, first is outputs nodes, second query nodes.

Definition at line 141 of file structuredInference.h.

Referenced by gum::prm::StructuredInference< GUM_SCALAR >::__buildReduceGraph(), and gum::prm::StructuredInference< GUM_SCALAR >::PData::queries().

template<typename GUM_SCALAR>
UndiGraph gum::prm::StructuredInference< GUM_SCALAR >::RGData::reducedGraph
template<typename GUM_SCALAR>
Bijection< const DiscreteVariable*, NodeId > gum::prm::StructuredInference< GUM_SCALAR >::RGData::var2node

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