aGrUM 2.3.2
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 Member Functions

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

Public Attributes

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

Detailed Description

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

Definition at line 68 of file interfaceGraph.h.

Constructor & Destructor Documentation

◆ LabelData() [1/2]

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

Constructor.

Definition at line 62 of file interfaceGraph.cpp.

62 : id(0) {
63 GUM_CONSTRUCTOR(LabelData);
64 ;
65 }
Idx id
An unique identifier for this label.

References LabelData(), and id.

Referenced by LabelData(), LabelData(), ~LabelData(), operator!=(), and operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LabelData() [2/2]

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

Copy constructor.

Definition at line 67 of file interfaceGraph.cpp.

67 : id(from.id), l(from.l) {
68 GUM_CONS_CPY(LabelData);
69 }
std::string l
The string version of this label.

References LabelData(), id, and l.

Here is the call graph for this function:

◆ ~LabelData()

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

Destructor.

Definition at line 71 of file interfaceGraph.cpp.

71 {
72 GUM_DESTRUCTOR(LabelData);
73 ;
74 }

References LabelData().

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 80 of file interfaceGraph.cpp.

80 {
81 return (id != from.id) && (l != from.l) && (tree_width != from.tree_width);
82 }
Size tree_width
The size in terms of tree width of the given label.

References LabelData(), id, l, and tree_width.

Here is the call graph for this function:

◆ operator==()

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

Equality operator.

Definition at line 76 of file interfaceGraph.cpp.

76 {
77 return (id == from.id) && (l == from.l) && (tree_width == from.tree_width);
78 }

References LabelData(), id, l, and tree_width.

Here is the call graph for this function:

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 78 of file interfaceGraph.h.

Referenced by LabelData(), operator!=(), gum::prm::gspan::operator<<(), gum::prm::gspan::operator<<(), gum::prm::gspan::operator<<(), and operator==().

◆ tree_width

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

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