aGrUM 2.3.2
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 Member Functions

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

Public Attributes

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

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 100 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 56 of file interfaceGraph_tpl.h.

56 : n(0), l(0) {
58 }
Inner class to handle data about nodes in graph.
PRMInstance< GUM_SCALAR > * n
The instance represented by this node.
LabelData * l
The label of this node.

References NodeData(), l, and n.

Referenced by NodeData(), NodeData(), ~NodeData(), operator!=(), and operator==().

Here is the call graph for this function:
Here is the caller 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 61 of file interfaceGraph_tpl.h.

61 :
62 n(from.n), l(from.l) {
64 }

References NodeData(), l, and n.

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

67 {
69 }

References NodeData().

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

77 {
78 return (n != from.n) && (l != from.l);
79 }

References NodeData(), l, and n.

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

72 {
73 return (n == from.n) && (l == from.l);
74 }

References NodeData(), l, and n.

Here is the call graph for this function:

Member Data Documentation

◆ l

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

◆ n

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

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