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

Description

Test:
verify adapter to iterate and navigate over array-like content, that can be accessed through subscript operator and size() function.
See also
iter-cursor.hpp
iter-adapter.hpp
usage example

Definition at line 80 of file index-iter-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 94 of file index-iter-test.cpp.

◆ verify_randomAccess()

void verify_randomAccess ( )
inlineprivate
Test:
verify the ability of IndexIter to access and manipulate the current index position, which can be done any time, while in the middle of iteration, and even after iteration end.

That means, even an exhausted iterator can be „reanimated“. This manipulation is not allowed on a default constructed IndexIter, though.

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

◆ iterTypeVariations()

void iterTypeVariations ( )
inlineprivate
Test:
verify possible variations of this iterator template, using a const container or maintaining shared ownership.

Definition at line 179 of file index-iter-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 249 of file index-iter-test.cpp.

+ Inheritance diagram for IndexIter_test:
+ Collaboration diagram for IndexIter_test:

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