![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Implementation of a Terminal Node Policy that maps nodeid directly to value. More...
#include <agrum/tools/multidim/FunctionGraphUtilities/terminalNodePolicies/ExactTerminalNodePolicy.h>
Public Member Functions | |
Terminal Node Creation and Destruction | |
void | addTerminalNode (const NodeId &n, const GUM_SCALAR &v) |
Insert a new terminal node with given value. More... | |
void | eraseTerminalNode (const NodeId &n) |
Remove node matching given id. More... | |
void | clearAllTerminalNodes () |
Erase all terminal nodes. More... | |
Terminal Nodes Existence | |
bool | existsTerminalNodeWithId (const NodeId &n) const |
Returns true if a terminal node matching this id exists. More... | |
bool | existsTerminalNodeWithValue (const GUM_SCALAR &v) const |
Returns true if a terminal node matching this value exists. More... | |
Terminal Nodes value and id access | |
const GUM_SCALAR & | terminalNodeValue (const NodeId &n) const |
Returns the value of the terminal node that has the given id. More... | |
const NodeId & | terminalNodeId (const GUM_SCALAR &v) const |
Returns the id of the terminal node that has the given value. More... | |
Iterator on Terminal Nodes | |
void | beginValues () const |
Initializes the constant safe iterator on terminal nodes. More... | |
bool | hasValue () const |
Indicates if constant safe iterator has reach end of terminal nodes list. More... | |
void | nextValue () const |
Increments the constant safe iterator. More... | |
const GUM_SCALAR & | value () const |
Returns the value of the current terminal nodes pointed by the constant safe iterator. More... | |
const NodeId & | id () const |
Returns the id of the current terminal nodes pointed by the constant safe iterator. More... | |
Implementation of a Terminal Node Policy that maps nodeid directly to value.
Definition at line 50 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Insert a new terminal node with given value.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 58 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Initializes the constant safe iterator on terminal nodes.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 97 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Erase all terminal nodes.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 64 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Remove node matching given id.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 61 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns true if a terminal node matching this id exists.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 73 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns true if a terminal node matching this value exists.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 76 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Indicates if constant safe iterator has reach end of terminal nodes list.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 100 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns the id of the current terminal nodes pointed by the constant safe iterator.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 111 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Increments the constant safe iterator.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 103 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns the id of the terminal node that has the given value.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 88 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns the value of the terminal node that has the given id.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 85 of file ExactTerminalNodePolicy.h.
|
inlinevirtual |
Returns the value of the current terminal nodes pointed by the constant safe iterator.
Implements gum::ITerminalNodePolicy< GUM_SCALAR >.
Definition at line 107 of file ExactTerminalNodePolicy.h.
|
private |
Definition at line 116 of file ExactTerminalNodePolicy.h.
|
mutableprivate |
Definition at line 117 of file ExactTerminalNodePolicy.h.