- Test:
- demonstrate and cover the properties of IterCursor.
This wrapper allows to change between iterating forward and backwards.
- See also
- iter-cursor.hpp
-
iter-adapter.hpp
-
usage example
Definition at line 74 of file iter-cursor-test.cpp.
◆ simpleIteration()
◆ switchDirection()
- Test:
- verify the ability of IterCursor to switch the direction of the iteration.
This "gear switch" can be done any time, while in the middle of iteration, and even after iteration end. That means, even an exhausted iterator can be "turned back". This does not work on a default constructed IterCursor, though.
Definition at line 128 of file iter-cursor-test.cpp.
◆ iterTypeVariations()
void iterTypeVariations |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify variant created from a const_iterator, based on the const-ness of the underlying STL iterator
Definition at line 198 of file iter-cursor-test.cpp.
◆ verifyComparisons()
void verifyComparisons |
( |
IT const & |
ii | ) |
|
|
inlineprivate |
- Test:
- verify equality handling and NIL detection for the given iterator/wrapper handed in.
- Note
- the argument is not altered; rather we create several copies, to iterate and compare those
Definition at line 245 of file iter-cursor-test.cpp.
The documentation for this class was generated from the following file: