Lumiera  0.pre.03
»edit your freedom«
iter-index.hpp File Reference

Go to the source code of this file.

Description

Iterator-style access handle to a referred container with subscript index.

This wrapper packages a current index number and a back-link to some data container with subscript operator and range check. This allows to hand out a navigable access point to a processing algorithm while abstracting away the actual data storage. Besides usage as »Lumiera Forward Iterator«, the current access position can be retrieved directly and it can be relocated to another valid index position; this implies also the ability to re-set the iteration to the container's start. Optionally, a smart-ptr can be embedded, allowing the handle also to owns and manage the data container.

See also
IterIndex_test
iter-adapter.hpp
usage example

Definition in file iter-index.hpp.

Classes

struct  IndexAccessCore< PTR >
 Implementation of a »IterStateCore« to access the container through an embedded index variable. More...
 
class  IterIndex< CON, PTR >
 Subscript-index based access to a container, packaged as iterator. More...
 

Namespaces

 lib
 Implementation namespace for support and library code.