aGrUM  0.20.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 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) { GUM_CONSTRUCTOR(LabelData); }
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 44 of file interfaceGraph.cpp.

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

44  : id(from.id), l(from.l) {
45  GUM_CONS_CPY(LabelData);
46  }
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 48 of file interfaceGraph.cpp.

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

48 { GUM_DESTRUCTOR(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 54 of file interfaceGraph.cpp.

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

54  {
55  return (id != from.id) && (l != from.l) && (tree_width != from.tree_width);
56  }
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 50 of file interfaceGraph.cpp.

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

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