Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
IterAdapter_test Class Reference

Description

Test:
set up example implementations based on the iterator-adapter templates and verify the behaviour in accordance to the concept "lumiera forward iterator"
Note
see Ticket #182
See also
IterAdapter
itertools.hpp
IterSource

Definition at line 182 of file iter-adapter-test.cpp.

Private Member Functions

virtual void run (Arg arg)
 
void enumerate ()
 
void wrapIterRange ()
 
template<class CON >
void simpleUsage (CON &elms)
 
void useSimpleWrappedContainer ()
 
void iterTypeVariations (TestContainer &elms)
 
void exposeDataAddresses ()
 
void verifyComparisons (TestContainer &elms)
 

Static Private Member Functions

static void showIntP (int *elm)
 
static void showInt (int elm)
 

Private Attributes

uint NUM_ELMS {0}
 

Member Function Documentation

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

Definition at line 187 of file iter-adapter-test.cpp.

References IterAdapter_test::enumerate(), IterAdapter_test::exposeDataAddresses(), IterAdapter_test::iterTypeVariations(), IterAdapter_test::NUM_ELMS, IterAdapter_test::simpleUsage(), IterAdapter_test::useSimpleWrappedContainer(), IterAdapter_test::verifyComparisons(), and IterAdapter_test::wrapIterRange().

+ Here is the call graph for this function:

◆ enumerate()

void enumerate ( )
inlineprivate
Test:
enumerate all number within a range

Definition at line 206 of file iter-adapter-test.cpp.

References lib::eachNum(), IterAdapter_test::NUM_ELMS, and VERIFY_ERROR.

Referenced by IterAdapter_test::run().

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

◆ wrapIterRange()

void wrapIterRange ( )
inlineprivate
Test:
usage scenario, where we allow the client to access a range of elements given by STL iterators, without any specific iteration behaviour.

Definition at line 241 of file iter-adapter-test.cpp.

References IterAdapter_test::NUM_ELMS.

Referenced by IterAdapter_test::run().

+ Here is the caller graph for this function:

◆ simpleUsage()

template<class CON >
void simpleUsage ( CON &  elms)
inlineprivate
Test:
use the IterAdapter as if it was a STL iterator

Definition at line 270 of file iter-adapter-test.cpp.

References IterAdapter_test::showIntP().

Referenced by IterAdapter_test::run().

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

◆ showIntP()

static void showIntP ( int *  elm)
inlinestaticprivate

Definition at line 276 of file iter-adapter-test.cpp.

Referenced by IterAdapter_test::simpleUsage().

+ Here is the caller graph for this function:

◆ showInt()

static void showInt ( int  elm)
inlinestaticprivate

Definition at line 277 of file iter-adapter-test.cpp.

Referenced by IterAdapter_test::useSimpleWrappedContainer().

+ Here is the caller graph for this function:

◆ useSimpleWrappedContainer()

void useSimpleWrappedContainer ( )
inlineprivate

Definition at line 282 of file iter-adapter-test.cpp.

References IterAdapter_test::NUM_ELMS, and IterAdapter_test::showInt().

Referenced by IterAdapter_test::run().

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

◆ iterTypeVariations()

void iterTypeVariations ( TestContainer &  elms)
inlineprivate
Test:
verify the const and dereferencing variants, which can be created based on IterAdapter

Definition at line 297 of file iter-adapter-test.cpp.

Referenced by IterAdapter_test::run().

+ Here is the caller graph for this function:

◆ exposeDataAddresses()

void exposeDataAddresses ( )
inlineprivate
Test:
build an iterator to expose the address of underlying data elements

Definition at line 385 of file iter-adapter-test.cpp.

References IterAdapter_test::NUM_ELMS.

Referenced by IterAdapter_test::run().

+ Here is the caller graph for this function:

◆ verifyComparisons()

void verifyComparisons ( TestContainer &  elms)
inlineprivate
Test:
iterator comparison, predicates and operators

Definition at line 428 of file iter-adapter-test.cpp.

Referenced by IterAdapter_test::run().

+ Here is the caller graph for this function:

Member Data Documentation

◆ NUM_ELMS

+ Inheritance diagram for IterAdapter_test:
+ Collaboration diagram for IterAdapter_test:

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