aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::prm::gspan::EdgeData< GUM_SCALAR > Struct Template Reference

Inner class to handle data about edges in graph__. More...

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

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

Public Attributes

PRMInstance< GUM_SCALAR > * u
 One of the two instance represented by this edge. More...
 
LabelDatal_u
 The label data of u. More...
 
PRMInstance< GUM_SCALAR > * v
 The other instance represented by thus edge. More...
 
LabelDatal_v
 The label data of v. More...
 
LabelDatal
 The labal data of this edge. More...
 

Public Member Functions

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

Detailed Description

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

Inner class to handle data about edges in graph__.

Definition at line 115 of file interfaceGraph.h.

Constructor & Destructor Documentation

◆ EdgeData() [1/2]

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

Constructor.

Definition at line 66 of file interfaceGraph_tpl.h.

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

66  : u(0), v(0), l(0) {
67  GUM_CONSTRUCTOR(EdgeData);
68  }
PRMInstance< GUM_SCALAR > * u
One of the two instance represented by this edge.
PRMInstance< GUM_SCALAR > * v
The other instance represented by thus edge.
LabelData * l
The labal data of this edge.
+ Here is the call graph for this function:

◆ EdgeData() [2/2]

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

Copy constructor.

Definition at line 71 of file interfaceGraph_tpl.h.

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

71  :
72  u(from.u), v(from.v), l(from.l) {
73  GUM_CONS_CPY(EdgeData);
74  }
PRMInstance< GUM_SCALAR > * u
One of the two instance represented by this edge.
PRMInstance< GUM_SCALAR > * v
The other instance represented by thus edge.
LabelData * l
The labal data of this edge.
+ Here is the call graph for this function:

◆ ~EdgeData()

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

Destructor.

Definition at line 77 of file interfaceGraph_tpl.h.

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

77  {
78  GUM_DESTRUCTOR(EdgeData);
79  }
+ Here is the call graph for this function:

Member Function Documentation

◆ operator!=()

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

Difference operator.

Definition at line 89 of file interfaceGraph_tpl.h.

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

90  {
91  return (u != from.u) && (l_u != from.l_u) && (v != from.v)
92  && (l_v != from.l_v) && (l != from.l);
93  }
PRMInstance< GUM_SCALAR > * u
One of the two instance represented by this edge.
std::string l
The string version of this label.
LabelData * l_u
The label data of u.
PRMInstance< GUM_SCALAR > * v
The other instance represented by thus edge.
LabelData * l
The labal data of this edge.
LabelData * l_v
The label data of v.
+ Here is the call graph for this function:

◆ operator==()

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

Equality operator.

Definition at line 82 of file interfaceGraph_tpl.h.

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

83  {
84  return (u == from.u) && (l_u == from.l_u) && (v == from.v)
85  && (l_v == from.l_v) && (l == from.l);
86  }
PRMInstance< GUM_SCALAR > * u
One of the two instance represented by this edge.
std::string l
The string version of this label.
LabelData * l_u
The label data of u.
PRMInstance< GUM_SCALAR > * v
The other instance represented by thus edge.
LabelData * l
The labal data of this edge.
LabelData * l_v
The label data of v.
+ Here is the call graph for this function:

Member Data Documentation

◆ l

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

The labal data of this edge.

Definition at line 132 of file interfaceGraph.h.

◆ l_u

template<typename GUM_SCALAR >
LabelData* gum::prm::gspan::EdgeData< GUM_SCALAR >::l_u

The label data of u.

Definition at line 126 of file interfaceGraph.h.

◆ l_v

template<typename GUM_SCALAR >
LabelData* gum::prm::gspan::EdgeData< GUM_SCALAR >::l_v

The label data of v.

Definition at line 130 of file interfaceGraph.h.

◆ u

template<typename GUM_SCALAR >
PRMInstance< GUM_SCALAR >* gum::prm::gspan::EdgeData< GUM_SCALAR >::u

One of the two instance represented by this edge.

Definition at line 124 of file interfaceGraph.h.

◆ v

template<typename GUM_SCALAR >
PRMInstance< GUM_SCALAR >* gum::prm::gspan::EdgeData< GUM_SCALAR >::v

The other instance represented by thus edge.

Definition at line 128 of file interfaceGraph.h.


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