aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
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 82 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 36 of file interfaceGraph_tpl.h.

References gum::prm::gspan::operator<<().

36  : n(0), l(0) {
37  GUM_CONSTRUCTOR(NodeData);
38  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.
+ Here is the call graph for this function:

◆ 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 41 of file interfaceGraph_tpl.h.

References gum::prm::gspan::operator<<().

41  :
42  n(from.n), l(from.l) {
43  GUM_CONS_CPY(NodeData);
44  }
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.
+ Here is the call graph for this function:

◆ ~NodeData()

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

Destructor.

Definition at line 47 of file interfaceGraph_tpl.h.

References gum::prm::gspan::operator<<().

47  {
48  GUM_DESTRUCTOR(NodeData);
49  }
+ 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 57 of file interfaceGraph_tpl.h.

References gum::prm::gspan::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 call 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 52 of file interfaceGraph_tpl.h.

References gum::prm::gspan::operator<<().

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

Member Data Documentation

◆ l

template<typename GUM_SCALAR >
LabelData* gum::prm::gspan::NodeData< GUM_SCALAR >::l

The label of this node.

Definition at line 93 of file interfaceGraph.h.

◆ n

template<typename GUM_SCALAR >
PRMInstance< GUM_SCALAR >* gum::prm::gspan::NodeData< GUM_SCALAR >::n

The instance represented by this node.

Definition at line 91 of file interfaceGraph.h.


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