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

Private Member Functions

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

Static Private Member Functions

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

Member Function Documentation

◆ enumerate()

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

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

◆ 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 251 of file iter-adapter-test.cpp.

◆ simpleUsage()

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

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

◆ iterTypeVariations()

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

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

◆ exposeDataAddresses()

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

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

◆ verifyComparisons()

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

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

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

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