50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_EXACT_TERMINAL_NODE_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_EXACT_TERMINAL_NODE_POLICY_H
69 template <
typename GUM_SCALAR >
Headers of the ITerminalNodePolicy.
Set of pairs of elements with fast search for both elements.
Implementation of a Terminal Node Policy that maps nodeid directly to value.
void eraseTerminalNode(const NodeId &n)
Remove node matching given id.
const GUM_SCALAR & terminalNodeValue(const NodeId &n) const
Returns the value of the terminal node that has the given id.
void addTerminalNode(const NodeId &n, const GUM_SCALAR &v)
Insert a new terminal node with given value.
const NodeId & id() const
Returns the id of the current terminal nodes pointed by the constant safe iterator.
void nextValue() const
Increments the constant safe iterator.
void beginValues() const
Initializes the constant safe iterator on terminal nodes.
bool existsTerminalNodeWithValue(const GUM_SCALAR &v) const
Returns true if a terminal node matching this value exists.
BijectionIteratorSafe< NodeId, GUM_SCALAR > _mappy_
const NodeId & terminalNodeId(const GUM_SCALAR &v) const
Returns the id of the terminal node that has the given value.
bool hasValue() const
Indicates if constant safe iterator has reach end of terminal nodes list.
Bijection< NodeId, GUM_SCALAR > _map_
const GUM_SCALAR & value() const
Returns the value of the current terminal nodes pointed by the constant safe iterator.
void clearAllTerminalNodes()
Erase all terminal nodes.
bool existsTerminalNodeWithId(const NodeId &n) const
Returns true if a terminal node matching this id exists.
Interface specifying the methods to be implemented by any TerminalNodePolicy.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities