YAMI4 Core Library 2.0.0
Messaging Solution for Distributed Systems
|
Iterator to parameter entries. More...
#include <parameter_iterator.h>
Public Member Functions | |
bool | has_next () const |
Checks if there is a subsequent entry. More... | |
void | move_next () |
Moves the iterator to the next entry. More... | |
parameter_entry | current () const |
Gets the current entry. More... | |
void | remove () |
Removes the current entry. More... | |
Friends | |
class | parameters |
Iterator to parameter entries.
The iterator to all parameter entries.
Note: The iterator object can be used only as long as it is valid and every modifying operation on the parameters object should be assumed as invalidating all existing iterators.
parameter_entry yami::core::parameter_iterator::current | ( | ) | const |
Gets the current entry.
Gets the current entry.
bool yami::core::parameter_iterator::has_next | ( | ) | const |
Checks if there is a subsequent entry.
Checks if there is a subsequent entry in the associated parameters object.
void yami::core::parameter_iterator::move_next | ( | ) |
Moves the iterator to the next entry.
Moves the iterator to the next non-empty entry in the associated parameters.
This function can be called only when some next entry exists.
void yami::core::parameter_iterator::remove | ( | ) |
Removes the current entry.
Removes the current entry.
Note: The iterator is not automatically moved to the next entry after the current one is removed. The only operations that are allowed after that are has_next and move_next.