48 template <
typename GUM_ELEMENT >
50 const GUM_ELEMENT& v) {
54 template <
typename GUM_ELEMENT >
59 template <
typename GUM_ELEMENT >
64 template <
typename GUM_ELEMENT >
66 return _map_.existsFirst(n);
69 template <
typename GUM_ELEMENT >
71 const GUM_ELEMENT& v)
const {
72 return _map_.existsSecond(v);
75 template <
typename GUM_ELEMENT >
78 return _map_.second(n);
81 template <
typename GUM_ELEMENT >
86 template <
typename GUM_ELEMENT >
91 template <
typename GUM_ELEMENT >
96 template <
typename GUM_ELEMENT >
101 template <
typename GUM_ELEMENT >
106 template <
typename GUM_ELEMENT >
Headers of the ExactTerminalNodePolicy.
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.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities