![]() |
aGrUM
0.16.0
|
#include <graphChange.h>
Public Member Functions | |
Constructors / Destructors | |
GraphChange (GraphChangeType type, NodeId node1, NodeId node2) noexcept | |
default constructor More... | |
GraphChange (const GraphChange &from) noexcept | |
copy constructor More... | |
GraphChange (GraphChange &&from) noexcept | |
move constructor More... | |
~GraphChange () noexcept | |
destructor More... | |
Operators | |
GraphChange & | operator= (const GraphChange &from) noexcept |
copy constructor More... | |
GraphChange & | operator= (GraphChange &&from) noexcept |
move operator More... | |
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... | |
virtual std::string | toString () const |
put the content of the graph change into a string More... | |
Definition at line 65 of file graphChange.h.
|
noexcept |
default constructor
|
noexcept |
copy constructor
|
noexcept |
move constructor
|
noexcept |
destructor
|
noexcept |
returns the first node involved in the modification
Referenced by gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), toString(), gum::learning::ArcAddition::toString(), gum::learning::ArcDeletion::toString(), gum::learning::ArcReversal::toString(), gum::learning::EdgeAddition::toString(), and gum::learning::EdgeDeletion::toString().
|
noexcept |
returns the second node involved in the modification
Referenced by gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), toString(), gum::learning::ArcAddition::toString(), gum::learning::ArcDeletion::toString(), gum::learning::ArcReversal::toString(), gum::learning::EdgeAddition::toString(), and gum::learning::EdgeDeletion::toString().
|
noexcept |
returns whether two graph changes are different or not
|
noexcept |
copy constructor
|
noexcept |
move operator
|
noexcept |
returns whether two graph changes are identical or not
|
virtual |
put the content of the graph change into a string
put the content of the GraphChange into a string
Reimplemented in gum::learning::EdgeDeletion, gum::learning::EdgeAddition, gum::learning::ArcReversal, gum::learning::ArcDeletion, and gum::learning::ArcAddition.
Definition at line 43 of file graphChange.cpp.
References gum::learning::ARC_ADDITION, gum::learning::ARC_DELETION, gum::learning::ARC_REVERSAL, gum::learning::EDGE_ADDITION, gum::learning::EDGE_DELETION, GUM_ERROR, node1(), node2(), and type().
Referenced by gum::learning::operator<<().
|
noexcept |
returns the type of the operation
Referenced by gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), and toString().
|
private |
the first node in the edge or arc to be modified
Definition at line 129 of file graphChange.h.
|
private |
the second node in the edge or arc to be modified
Definition at line 132 of file graphChange.h.
|
private |
the type of modification
Definition at line 126 of file graphChange.h.