Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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

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

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

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

References IndexIter_test::iterTypeVariations(), IndexIter_test::simpleIteration(), and IndexIter_test::verify_randomAccess().

+ Here is the call graph for this function:

◆ simpleIteration()

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

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

References lib::explore(), and IndexIter_test::verifyComparisons().

Referenced by IndexIter_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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

References VERIFY_ERROR, and IndexIter_test::verifyComparisons().

Referenced by IndexIter_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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

References IndexIter_test::verifyComparisons().

Referenced by IndexIter_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyComparisons()

template<class IT >
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.

Referenced by IndexIter_test::iterTypeVariations(), IndexIter_test::simpleIteration(), and IndexIter_test::verify_randomAccess().

+ Here is the caller graph for this function:
+ Inheritance diagram for IndexIter_test:
+ Collaboration diagram for IndexIter_test:

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