Lumiera  0.pre.03
»edit your freedom«
IterCursor_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 83 of file iter-cursor-test.cpp.

Private Member Functions

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

Member Function Documentation

◆ simpleIteration()

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

Definition at line 97 of file iter-cursor-test.cpp.

◆ switchDirection()

void switchDirection ( )
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 137 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 207 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 254 of file iter-cursor-test.cpp.

+ Inheritance diagram for IterCursor_test:
+ Collaboration diagram for IterCursor_test:

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