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

Constructor & Destructor Documentation

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

Constructor.

Definition at line 64 of file interfaceGraph_tpl.h.

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.
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.

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.
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::EdgeData< GUM_SCALAR >::operator==().

75  {
76  GUM_DESTRUCTOR(EdgeData);
77  }

+ Here is the call graph for this function:

Member Function Documentation

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

Difference operator.

Definition at line 88 of file interfaceGraph_tpl.h.

References gum::prm::gspan::EdgeData< GUM_SCALAR >::l, gum::prm::gspan::EdgeData< GUM_SCALAR >::l_u, gum::prm::gspan::EdgeData< GUM_SCALAR >::l_v, gum::prm::gspan::EdgeData< GUM_SCALAR >::u, and gum::prm::gspan::EdgeData< GUM_SCALAR >::v.

Referenced by gum::prm::gspan::EdgeData< GUM_SCALAR >::operator==().

88  {
89  return (u != from.u) && (l_u != from.l_u) && (v != from.v)
90  && (l_v != from.l_v) && (l != from.l);
91  }
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 caller graph for this function:

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

Equality operator.

Definition at line 81 of file interfaceGraph_tpl.h.

References gum::prm::gspan::EdgeData< GUM_SCALAR >::l, gum::prm::gspan::EdgeData< GUM_SCALAR >::l_u, gum::prm::gspan::EdgeData< GUM_SCALAR >::l_v, gum::prm::gspan::EdgeData< GUM_SCALAR >::operator!=(), gum::prm::gspan::EdgeData< GUM_SCALAR >::u, and gum::prm::gspan::EdgeData< GUM_SCALAR >::v.

Referenced by gum::prm::gspan::EdgeData< GUM_SCALAR >::~EdgeData().

81  {
82  return (u == from.u) && (l_u == from.l_u) && (v == from.v)
83  && (l_v == from.l_v) && (l == from.l);
84  }
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:

+ Here is the caller graph for this function:

Member Data Documentation


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