50#ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_SET_TERMINAL_NODE_POLICY_H
51#define GUM_MULTI_DIM_FUNCTION_GRAPH_SET_TERMINAL_NODE_POLICY_H
68 template <
typename GUM_ELEMENT >
128 const GUM_ELEMENT&
value()
const;
Safe Const Iterators for hashtables.
The class for generic Hash Tables.
Implementation of a Terminal Node Policy that maps nodeid to a set of value.
bool existsTerminalNodeWithValue(const GUM_ELEMENT &v) const
Returns true if a terminal node matching this value exists.
const GUM_ELEMENT & value() const
Returns the value of the current terminal nodes pointed by the constant safe iterator.
HashTableConstIteratorSafe< NodeId, GUM_ELEMENT * > _mappy_
The mapping between NodeIds and Value Sets.
const NodeId jocker
The mapping between NodeIds and Value Sets.
void addTerminalNode(const NodeId &n, const GUM_ELEMENT &v)
Insert a new terminal node with given value.
HashTable< NodeId, GUM_ELEMENT * > _map_
The mapping between NodeIds and Value Sets.
bool hasValue() const
Indicates if constant safe iterator has reach end of terminal nodes list.
void clearAllTerminalNodes()
Erase all terminal nodes.
void beginValues() const
Initializes the constant safe iterator on terminal nodes.
void eraseTerminalNode(const NodeId &n)
Remove node matching given id.
const NodeId & terminalNodeId(const GUM_ELEMENT &v) const
Returns the id of the terminal node that has the 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.
const GUM_ELEMENT & terminalNodeValue(const NodeId &n) const
Returns the value of the terminal node that has the given id.
bool existsTerminalNodeWithId(const NodeId &n) const
Returns true if a terminal node matching this id exists.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities
Base node set class for graphs.