aGrUM  0.13.2
gum::prm::gspan::LabelData Struct Reference

Inner class to handle data about labels in this interface graph. More...

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

Public Attributes

Idx id
 An unique identifier for this label. More...
 
std::string l
 The string version of this label. More...
 
Size tree_width
 The size in terms of tree width of the given label. More...
 

Public Member Functions

 LabelData ()
 Constructor. More...
 
 LabelData (const LabelData &from)
 Copy constructor. More...
 
 ~LabelData ()
 Destructor. More...
 
bool operator== (const LabelData &from) const
 Equality operator. More...
 
bool operator!= (const LabelData &from) const
 Difference operator. More...
 

Detailed Description

Inner class to handle data about labels in this interface graph.

Definition at line 48 of file interfaceGraph.h.

Constructor & Destructor Documentation

gum::prm::gspan::LabelData::LabelData ( )

Constructor.

Definition at line 40 of file interfaceGraph.cpp.

40 : id(0) { GUM_CONSTRUCTOR(LabelData); }
Idx id
An unique identifier for this label.
gum::prm::gspan::LabelData::LabelData ( const LabelData from)

Copy constructor.

Definition at line 42 of file interfaceGraph.cpp.

42  : id(from.id), l(from.l) {
43  GUM_CONS_CPY(LabelData);
44  }
std::string l
The string version of this label.
Idx id
An unique identifier for this label.
gum::prm::gspan::LabelData::~LabelData ( )

Destructor.

Definition at line 46 of file interfaceGraph.cpp.

46 { GUM_DESTRUCTOR(LabelData); }

Member Function Documentation

bool gum::prm::gspan::LabelData::operator!= ( const LabelData from) const

Difference operator.

Definition at line 52 of file interfaceGraph.cpp.

References id, l, and tree_width.

52  {
53  return (id != from.id) && (l != from.l) && (tree_width != from.tree_width);
54  }
std::string l
The string version of this label.
Size tree_width
The size in terms of tree width of the given label.
bool gum::prm::gspan::LabelData::operator== ( const LabelData from) const

Equality operator.

Definition at line 48 of file interfaceGraph.cpp.

References id, l, and tree_width.

48  {
49  return (id == from.id) && (l == from.l) && (tree_width == from.tree_width);
50  }
std::string l
The string version of this label.
Size tree_width
The size in terms of tree width of the given label.

Member Data Documentation

Idx gum::prm::gspan::LabelData::id
std::string gum::prm::gspan::LabelData::l

The string version of this label.

Definition at line 58 of file interfaceGraph.h.

Referenced by gum::prm::gspan::InterfaceGraph< GUM_SCALAR >::__label(), operator!=(), gum::prm::gspan::operator<<(), and operator==().


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