aGrUM  0.16.0
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 51 of file interfaceGraph.h.

Constructor & Destructor Documentation

◆ LabelData() [1/2]

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

Constructor.

Definition at line 43 of file interfaceGraph.cpp.

43 : id(0) { GUM_CONSTRUCTOR(LabelData); }
Idx id
An unique identifier for this label.

◆ LabelData() [2/2]

gum::prm::gspan::LabelData::LabelData ( const LabelData from)

Copy constructor.

Definition at line 45 of file interfaceGraph.cpp.

45  : id(from.id), l(from.l) {
46  GUM_CONS_CPY(LabelData);
47  }
std::string l
The string version of this label.
Idx id
An unique identifier for this label.

◆ ~LabelData()

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

Destructor.

Definition at line 49 of file interfaceGraph.cpp.

49 { GUM_DESTRUCTOR(LabelData); }

Member Function Documentation

◆ operator!=()

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

Difference operator.

Definition at line 55 of file interfaceGraph.cpp.

References id, l, and tree_width.

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

◆ operator==()

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

Equality operator.

Definition at line 51 of file interfaceGraph.cpp.

References id, l, and tree_width.

51  {
52  return (id == from.id) && (l == from.l) && (tree_width == from.tree_width);
53  }
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

◆ id

Idx gum::prm::gspan::LabelData::id

◆ l

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

The string version of this label.

Definition at line 61 of file interfaceGraph.h.

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

◆ tree_width


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