![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
The class for notifying learning algorithms of new edge additionsThis class is convenient to know at compile time which graph change we are dealing with. More...
#include <graphChange.h>
Public Member Functions | |
Constructors / Destructors | |
EdgeAddition (NodeId node1, NodeId node2) noexcept | |
default constructor More... | |
EdgeAddition (const EdgeAddition &from) noexcept | |
copy constructor More... | |
EdgeAddition (EdgeAddition &&from) noexcept | |
move constructor More... | |
~EdgeAddition () noexcept | |
destructor More... | |
Operators | |
EdgeAddition & | operator= (const EdgeAddition &from) noexcept |
copy constructor More... | |
EdgeAddition & | operator= (EdgeAddition &&from) noexcept |
move operator More... | |
bool | operator== (const EdgeAddition &from) const noexcept |
returns whether two edge additions are identical or not More... | |
bool | operator!= (const EdgeAddition &from) const noexcept |
returns whether two edge additions are different or not More... | |
Accessors / Modifiers | |
virtual std::string | toString () const final |
put the content of the EdgeAddition into a string More... | |
Operators | |
bool | operator== (const GraphChange &from) const noexcept |
returns whether two graph changes are identical or not More... | |
bool | operator!= (const GraphChange &from) const noexcept |
returns whether two graph changes are different or not More... | |
Accessors/Modifiers | |
GraphChangeType | type () const noexcept |
returns the type of the operation More... | |
NodeId | node1 () const noexcept |
returns the first node involved in the modification More... | |
NodeId | node2 () const noexcept |
returns the second node involved in the modification More... | |
The class for notifying learning algorithms of new edge additions
This class is convenient to know at compile time which graph change we are dealing with.
Thus, this enables to perform faster code (we can avoid using a switch on GraphChanges to determine which change corresponds to this class.
Definition at line 348 of file graphChange.h.
default constructor
|
noexcept |
copy constructor
|
noexcept |
move constructor
|
noexcept |
destructor
|
noexceptinherited |
returns the first node involved in the modification
|
noexceptinherited |
returns the second node involved in the modification
|
noexceptinherited |
returns whether two graph changes are different or not
|
noexcept |
returns whether two edge additions are different or not
|
noexcept |
copy constructor
|
noexcept |
move operator
|
noexceptinherited |
returns whether two graph changes are identical or not
|
noexcept |
returns whether two edge additions are identical or not
|
finalvirtual |
put the content of the EdgeAddition into a string
Reimplemented from gum::learning::GraphChange.
Definition at line 92 of file graphChange.cpp.
References gum::learning::genericBNLearner::Database::Database().
|
noexceptinherited |
returns the type of the operation