aGrUM  0.16.0
gum::prm::gspan::NodeData< GUM_SCALAR > Struct Template Reference

Inner class to handle data about nodes in __graph. More...

#include <agrum/PRM/gspan/interfaceGraph.h>

+ Collaboration diagram for gum::prm::gspan::NodeData< GUM_SCALAR >:

Public Attributes

PRMInstance< GUM_SCALAR > * n
 The instance represented by this node. More...
 
LabelDatal
 The label of this node. More...
 

Public Member Functions

 NodeData ()
 Constructor. More...
 
 NodeData (const NodeData< GUM_SCALAR > &from)
 Copy Constructor. More...
 
 ~NodeData ()
 Destructor. More...
 
bool operator== (const NodeData< GUM_SCALAR > &from) const
 Equality operator. More...
 
bool operator!= (const NodeData< GUM_SCALAR > &from) const
 Difference operator. More...
 

Detailed Description

template<typename GUM_SCALAR>
struct gum::prm::gspan::NodeData< GUM_SCALAR >

Inner class to handle data about nodes in __graph.

Definition at line 83 of file interfaceGraph.h.

Constructor & Destructor Documentation

◆ NodeData() [1/2]

template<typename GUM_SCALAR >
INLINE gum::prm::gspan::NodeData< GUM_SCALAR >::NodeData ( )

Constructor.

Definition at line 37 of file interfaceGraph_tpl.h.

37  : n(0), l(0) {
38  GUM_CONSTRUCTOR(NodeData);
39  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.

◆ NodeData() [2/2]

template<typename GUM_SCALAR >
INLINE gum::prm::gspan::NodeData< GUM_SCALAR >::NodeData ( const NodeData< GUM_SCALAR > &  from)

Copy Constructor.

Definition at line 42 of file interfaceGraph_tpl.h.

42  :
43  n(from.n), l(from.l) {
44  GUM_CONS_CPY(NodeData);
45  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.

◆ ~NodeData()

template<typename GUM_SCALAR >
INLINE gum::prm::gspan::NodeData< GUM_SCALAR >::~NodeData ( )

Destructor.

Definition at line 48 of file interfaceGraph_tpl.h.

References gum::prm::gspan::NodeData< GUM_SCALAR >::operator==().

48  {
49  GUM_DESTRUCTOR(NodeData);
50  }
+ Here is the call graph for this function:

Member Function Documentation

◆ operator!=()

template<typename GUM_SCALAR >
INLINE bool gum::prm::gspan::NodeData< GUM_SCALAR >::operator!= ( const NodeData< GUM_SCALAR > &  from) const

Difference operator.

Definition at line 60 of file interfaceGraph_tpl.h.

References gum::prm::gspan::NodeData< GUM_SCALAR >::l, and gum::prm::gspan::NodeData< GUM_SCALAR >::n.

Referenced by gum::prm::gspan::NodeData< GUM_SCALAR >::operator==().

60  {
61  return (n != from.n) && (l != from.l);
62  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
std::string l
The string version of this label.
LabelData * l
The label of this node.
+ Here is the caller graph for this function:

◆ operator==()

template<typename GUM_SCALAR >
INLINE bool gum::prm::gspan::NodeData< GUM_SCALAR >::operator== ( const NodeData< GUM_SCALAR > &  from) const

Equality operator.

Definition at line 54 of file interfaceGraph_tpl.h.

References gum::prm::gspan::NodeData< GUM_SCALAR >::l, gum::prm::gspan::NodeData< GUM_SCALAR >::n, and gum::prm::gspan::NodeData< GUM_SCALAR >::operator!=().

Referenced by gum::prm::gspan::NodeData< GUM_SCALAR >::~NodeData().

54  {
55  return (n == from.n) && (l == from.l);
56  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
std::string l
The string version of this label.
LabelData * l
The label of this node.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ l

◆ n


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