Lumiera  0.pre.03
»edit your freedom«
IterIndex_test Class Reference

Description

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.

Private Member Functions

void iterTypeVariations ()
 
virtual void run (Arg)
 
void simpleIteration ()
 
void verify_randomAccess ()
 
template<class IT >
void verifyComparisons (IT const &ii)
 

Member Function Documentation

◆ simpleIteration()

void simpleIteration ( )
inlineprivate
Test:
just iterate in various ways.

Definition at line 103 of file iter-index-test.cpp.

◆ 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.

+ Inheritance diagram for IterIndex_test:
+ Collaboration diagram for IterIndex_test:

The documentation for this class was generated from the following file: