aGrUM  0.20.3
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 114 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 64 of file interfaceGraph_tpl.h.

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

64  : u(0), v(0), l(0) {
65  GUM_CONSTRUCTOR(EdgeData);
66  }
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 69 of file interfaceGraph_tpl.h.

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

69  :
70  u(from.u), v(from.v), l(from.l) {
71  GUM_CONS_CPY(EdgeData);
72  }
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 75 of file interfaceGraph_tpl.h.

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

75  {
76  GUM_DESTRUCTOR(EdgeData);
77  }
+ 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 86 of file interfaceGraph_tpl.h.

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

86  {
87  return (u != from.u) && (l_u != from.l_u) && (v != from.v) && (l_v != from.l_v)
88  && (l != from.l);
89  }
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 80 of file interfaceGraph_tpl.h.

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

80  {
81  return (u == from.u) && (l_u == from.l_u) && (v == from.v) && (l_v == from.l_v)
82  && (l == from.l);
83  }
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 131 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 125 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 129 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 123 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 127 of file interfaceGraph.h.


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