aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
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 50 of file interfaceGraph.h.

Constructor & Destructor Documentation

◆ LabelData() [1/2]

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

Constructor.

Definition at line 42 of file interfaceGraph.cpp.

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

42  : id(0) {
43  GUM_CONSTRUCTOR(LabelData);
44  ;
45  }
Idx id
An unique identifier for this label.
+ Here is the call graph for this function:

◆ LabelData() [2/2]

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

Copy constructor.

Definition at line 47 of file interfaceGraph.cpp.

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

47  : id(from.id), l(from.l) {
48  GUM_CONS_CPY(LabelData);
49  }
std::string l
The string version of this label.
Idx id
An unique identifier for this label.
+ Here is the call graph for this function:

◆ ~LabelData()

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

Destructor.

Definition at line 51 of file interfaceGraph.cpp.

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

51  {
52  GUM_DESTRUCTOR(LabelData);
53  ;
54  }
+ Here is the call graph for this function:

Member Function Documentation

◆ operator!=()

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

Difference operator.

Definition at line 60 of file interfaceGraph.cpp.

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

60  {
61  return (id != from.id) && (l != from.l) && (tree_width != from.tree_width);
62  }
std::string l
The string version of this label.
Size tree_width
The size in terms of tree width of the given label.
+ Here is the call graph for this function:

◆ operator==()

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

Equality operator.

Definition at line 56 of file interfaceGraph.cpp.

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

56  {
57  return (id == from.id) && (l == from.l) && (tree_width == from.tree_width);
58  }
std::string l
The string version of this label.
Size tree_width
The size in terms of tree width of the given label.
+ Here is the call graph for this function:

Member Data Documentation

◆ id

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

An unique identifier for this label.

Definition at line 58 of file interfaceGraph.h.

◆ l

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

The string version of this label.

Definition at line 60 of file interfaceGraph.h.

◆ tree_width

Size gum::prm::gspan::LabelData::tree_width

The size in terms of tree width of the given label.

Definition at line 62 of file interfaceGraph.h.


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