aGrUM  0.13.2
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 80 of file interfaceGraph.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 34 of file interfaceGraph_tpl.h.

34  : n(0), l(0) {
35  GUM_CONSTRUCTOR(NodeData);
36  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.
template<typename GUM_SCALAR >
INLINE gum::prm::gspan::NodeData< GUM_SCALAR >::NodeData ( const NodeData< GUM_SCALAR > &  from)

Copy Constructor.

Definition at line 39 of file interfaceGraph_tpl.h.

39  :
40  n(from.n), l(from.l) {
41  GUM_CONS_CPY(NodeData);
42  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.
template<typename GUM_SCALAR >
INLINE gum::prm::gspan::NodeData< GUM_SCALAR >::~NodeData ( )

Destructor.

Definition at line 45 of file interfaceGraph_tpl.h.

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

45  {
46  GUM_DESTRUCTOR(NodeData);
47  }

+ Here is the call graph for this function:

Member Function Documentation

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

Difference operator.

Definition at line 57 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==().

57  {
58  return (n != from.n) && (l != from.l);
59  }
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:

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

Equality operator.

Definition at line 51 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().

51  {
52  return (n == from.n) && (l == from.l);
53  }
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


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