aGrUM  0.14.2
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 91 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 567 of file DFSTree_tpl.h.

567  :
568  pattern(p), cost(0), gain(0) {
569  GUM_CONSTRUCTOR(DFSTree< GUM_SCALAR >::PatternData);
570  }
Pattern * pattern
The pattern.
Definition: DFSTree.h:99
Size cost
The cost of this Pattern.
Definition: DFSTree.h:109
Size gain
The gain of this Pattern.
Definition: DFSTree.h:111

◆ PatternData() [2/2]

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

Copy constructor.

Definition at line 352 of file DFSTree_tpl.h.

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

352  :
353  pattern(from.pattern), children(from.children),
354  iso_graph(from.iso_graph), max_indep_set(from.max_indep_set),
355  cost(from.cost), gain(from.gain) {
356  GUM_CONS_CPY(DFSTree< GUM_SCALAR >::PatternData);
357 
358  for (const auto& elt : from.iso_map)
359  iso_map.insert(elt.first,
360  new Sequence< PRMInstance< GUM_SCALAR >* >(*elt.second));
361  }
Pattern * pattern
The pattern.
Definition: DFSTree.h:99
Size cost
The cost of this Pattern.
Definition: DFSTree.h:109
Set< NodeId > max_indep_set
The maximal independent set of p.
Definition: DFSTree.h:107
NodeProperty< Sequence< PRMInstance< GUM_SCALAR > *> *> iso_map
The instances matching p in the interface graph.
Definition: DFSTree.h:105
Size gain
The gain of this Pattern.
Definition: DFSTree.h:111
UndiGraph iso_graph
The isomorphism graph of the pattern.
Definition: DFSTree.h:103
std::list< NodeId > children
The list of the pattern&#39;s children, sorted lexicographically.
Definition: DFSTree.h:101

◆ ~PatternData()

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

Destructor.

Definition at line 364 of file DFSTree_tpl.h.

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

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

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 101 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 109 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 111 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 103 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 107 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 99 of file DFSTree.h.


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