- 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 89 of file iter-index-test.cpp.
◆ simpleIteration()
◆ verify_randomAccess()
void verify_randomAccess |
( |
| ) |
|
|
inlineprivate |
- 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 138 of file iter-index-test.cpp.
◆ iterTypeVariations()
void iterTypeVariations |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify the const and dereferencing variants, based on the const-ness of the underlying STL iterator
Definition at line 184 of file iter-index-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 254 of file iter-index-test.cpp.
The documentation for this class was generated from the following file: