aGrUM  0.16.0
gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData Struct Reference

#include <DFSTree.h>

+ Collaboration diagram for gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData:

Public Attributes

Patternpattern
 The pattern. More...
 
std::list< NodeIdchildren
 The list of the pattern's children, sorted lexicographically. More...
 
UndiGraph iso_graph
 The isomorphism graph of the pattern. More...
 
NodeProperty< Sequence< PRMInstance< GUM_SCALAR > *> *> iso_map
 The instances matching p in the interface graph. More...
 
Set< NodeIdmax_indep_set
 The maximal independent set of p. More...
 
Size cost
 The cost of this Pattern. More...
 
Size gain
 The gain of this Pattern. More...
 

Public Member Functions

 PatternData (Pattern *p)
 Constructor. More...
 
 PatternData (const PatternData &from)
 Copy constructor. More...
 
 ~PatternData ()
 Destructor. More...
 

Detailed Description

template<typename GUM_SCALAR>
struct gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData

Definition at line 94 of file DFSTree.h.

Constructor & Destructor Documentation

◆ PatternData() [1/2]

template<typename GUM_SCALAR >
INLINE gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::PatternData ( Pattern p)
explicit

Constructor.

Definition at line 570 of file DFSTree_tpl.h.

570  :
571  pattern(p), cost(0), gain(0) {
572  GUM_CONSTRUCTOR(DFSTree< GUM_SCALAR >::PatternData);
573  }
Pattern * pattern
The pattern.
Definition: DFSTree.h:102
Size cost
The cost of this Pattern.
Definition: DFSTree.h:112
Size gain
The gain of this Pattern.
Definition: DFSTree.h:114

◆ PatternData() [2/2]

template<typename GUM_SCALAR >
gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::PatternData ( const PatternData from)

Copy constructor.

Definition at line 355 of file DFSTree_tpl.h.

References gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::iso_map.

355  :
356  pattern(from.pattern), children(from.children),
357  iso_graph(from.iso_graph), max_indep_set(from.max_indep_set),
358  cost(from.cost), gain(from.gain) {
359  GUM_CONS_CPY(DFSTree< GUM_SCALAR >::PatternData);
360 
361  for (const auto& elt : from.iso_map)
362  iso_map.insert(elt.first,
363  new Sequence< PRMInstance< GUM_SCALAR >* >(*elt.second));
364  }
Pattern * pattern
The pattern.
Definition: DFSTree.h:102
Size cost
The cost of this Pattern.
Definition: DFSTree.h:112
Set< NodeId > max_indep_set
The maximal independent set of p.
Definition: DFSTree.h:110
NodeProperty< Sequence< PRMInstance< GUM_SCALAR > *> *> iso_map
The instances matching p in the interface graph.
Definition: DFSTree.h:108
Size gain
The gain of this Pattern.
Definition: DFSTree.h:114
UndiGraph iso_graph
The isomorphism graph of the pattern.
Definition: DFSTree.h:106
std::list< NodeId > children
The list of the pattern&#39;s children, sorted lexicographically.
Definition: DFSTree.h:104

◆ ~PatternData()

template<typename GUM_SCALAR >
gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::~PatternData ( )

Destructor.

Definition at line 367 of file DFSTree_tpl.h.

References gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::iso_map.

367  {
368  GUM_DESTRUCTOR(DFSTree< GUM_SCALAR >::PatternData);
369 
370  for (const auto& elt : iso_map)
371  delete elt.second;
372  }
NodeProperty< Sequence< PRMInstance< GUM_SCALAR > *> *> iso_map
The instances matching p in the interface graph.
Definition: DFSTree.h:108

Member Data Documentation

◆ children

template<typename GUM_SCALAR>
std::list< NodeId > gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::children

The list of the pattern's children, sorted lexicographically.

Definition at line 104 of file DFSTree.h.

◆ cost

template<typename GUM_SCALAR>
Size gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::cost

The cost of this Pattern.

Definition at line 112 of file DFSTree.h.

◆ gain

template<typename GUM_SCALAR>
Size gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::gain

The gain of this Pattern.

Definition at line 114 of file DFSTree.h.

◆ iso_graph

template<typename GUM_SCALAR>
UndiGraph gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::iso_graph

The isomorphism graph of the pattern.

Definition at line 106 of file DFSTree.h.

Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__initialiaze_root(), and gum::prm::gspan::DFSTree< GUM_SCALAR >::growPattern().

◆ iso_map

◆ max_indep_set

template<typename GUM_SCALAR>
Set< NodeId > gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::max_indep_set

The maximal independent set of p.

Definition at line 110 of file DFSTree.h.

Referenced by gum::prm::gspan::DFSTree< GUM_SCALAR >::__initialiaze_root(), and gum::prm::gspan::DFSTree< GUM_SCALAR >::growPattern().

◆ pattern

template<typename GUM_SCALAR>
Pattern* gum::prm::gspan::DFSTree< GUM_SCALAR >::PatternData::pattern

The pattern.

Definition at line 102 of file DFSTree.h.


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