20 #ifndef IDTOIDENUMERATOR_H_
21 #define IDTOIDENUMERATOR_H_
23 #include "../basic_types/globals.h"
24 #include "../basic_types/InvalidStateException.h"
27 namespace rule_engine {
111 unordered_set<IDType>::const_iterator
iter;
const IDType source
Stores the ID mapped from.
Definition: IDtoIDEnumerator.h:101
virtual ~IDtoIDEnumerator()
Destroys the current instance of this enumerator.
Definition: IDtoIDEnumerator.cpp:46
This enumerator encapsulates a mapping of an ID to a set of IDs.
Definition: IDtoIDEnumerator.h:37
IDType const & getSource() const
Returns the ID to map from.
Definition: IDtoIDEnumerator.cpp:63
IDType const & getTarget() const
Return the current ID to map to.
Definition: IDtoIDEnumerator.cpp:67
bool ended() const
Returns true iff the enumerator could not retrieve another ID to map to.
Definition: IDtoIDEnumerator.cpp:59
IDtoIDEnumerator & operator++()
Retrieves the next ID to map to, if possible.
Definition: IDtoIDEnumerator.cpp:50
unordered_set< IDType > const * targets
Stores the set of IDs mapped to.
Definition: IDtoIDEnumerator.h:106
unordered_set< IDType >::const_iterator iter
Stores an iterator to the current ID mapped to.
Definition: IDtoIDEnumerator.h:111
void reset()
Resets the enumeration to start from the beginning.
Definition: IDtoIDEnumerator.cpp:55
IDtoIDEnumerator()
This constructor cannot/should not be called.
Definition: IDtoIDEnumerator.cpp:28
unsigned int IDType
IDType is an (unsigned) integer specifically used as an Identifier of graphs, elements of graphs or a...
Definition: globals.h:53