Mirror reflection library 0.5.13
|
Traversal allows to traverse elements of containers in an uniform way. More...
#include <mirror/doc/concepts_container.hpp>
Public Member Functions | |
bool | done (void) const |
Indicates that the element traversal is finished. | |
bool | empty (void) const |
Synonym for done. | |
SafeLocator | front (void) const |
Returns a locator for the current element in the traversal. | |
void | step_front (void) |
Moves the front of the range one step ahead, to the next element. |
Traversal allows to traverse elements of containers in an uniform way.
Traversal is not a meta-object, it is rather an abstraction for types wrapping various methods of container element traversal. Instances of these types are created by the MetaTraversal meta-object and allow the users to iterate through the elements of an arbitrary container in a generic way.
bool mirror::Traversal::done | ( | void | ) | const |
Indicates that the element traversal is finished.
When this member function returns true, then the step_front and the front member functions must not be called.
SafeLocator mirror::Traversal::front | ( | void | ) | const |
void mirror::Traversal::step_front | ( | void | ) |