50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_EXACT_TERMINAL_NODE_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_EXACT_TERMINAL_NODE_POLICY_H
68 template <
typename GUM_ELEMENT >
126 const GUM_ELEMENT&
value()
const override;
Headers of the ITerminalNodePolicy.
Implementation of a Terminal Node Policy that maps nodeid directly to value.
const NodeId & id() const override
Returns the id of the current terminal nodes pointed by the constant safe iterator.
bool hasValue() const override
Indicates if constant safe iterator has reach end of terminal nodes list.
void nextValue() const override
Increments the constant safe iterator.
BijectionIteratorSafe< NodeId, GUM_ELEMENT > _mappy_
const NodeId & terminalNodeId(const GUM_ELEMENT &v) const override
Returns the id of the terminal node that has the given value.
bool existsTerminalNodeWithId(const NodeId &n) const override
Returns true if a terminal node matching this id exists.
const GUM_ELEMENT & terminalNodeValue(const NodeId &n) const override
Returns the value of the terminal node that has the given id.
Bijection< NodeId, GUM_ELEMENT > _map_
void addTerminalNode(const NodeId &n, const GUM_ELEMENT &v) override
Insert a new terminal node with given value.
void clearAllTerminalNodes() override
Erase all terminal nodes.
bool existsTerminalNodeWithValue(const GUM_ELEMENT &v) const override
Returns true if a terminal node matching this value exists.
void beginValues() const override
Initializes the constant safe iterator on terminal nodes.
const GUM_ELEMENT & value() const override
Returns the value of the current terminal nodes pointed by the constant safe iterator.
void eraseTerminalNode(const NodeId &n) override
Remove node matching given id.
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