Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TransformIter< IT, VAL > Class Template Reference

#include "lib/itertools.hpp"

Description

template<class IT, class VAL>
class lib::TransformIter< IT, VAL >

Iterator tool treating pulled data by a custom transformation (function)

Template Parameters
ITsource iterator
VALresult (output) type

Definition at line 754 of file itertools.hpp.

Public Member Functions

 TransformIter ()
 
template<typename FUN >
 TransformIter (IT &&src, FUN trafoFunc)
 
template<typename FUN >
 TransformIter (IT const &src, FUN trafoFunc)
 
- Public Member Functions inherited from IterTool< TransformingCore< IT, VAL > >
 IterTool (TransformingCore< IT, VAL > &&setup)
 
 operator bool () const
 
reference operator* () const
 
pointer operator-> () const
 
IterTooloperator++ ()
 
bool isValid () const
 
bool empty () const
 

Private Types

using _Trafo = TransformingCore< IT, VAL >
 
using _IteratorImpl = IterTool< _Trafo >
 

Additional Inherited Members

- Public Types inherited from IterTool< TransformingCore< IT, VAL > >
using pointer = CORE::pointer
 
using reference = CORE::reference
 
using value_type = CORE::value_type
 
- Protected Member Functions inherited from IterTool< TransformingCore< IT, VAL > >
bool hasData () const
 
bool iterate ()
 
void _maybe_throw () const
 
- Protected Attributes inherited from IterTool< TransformingCore< IT, VAL > >
TransformingCore< IT, VAL > core_
 

Constructor & Destructor Documentation

◆ TransformIter() [1/3]

template<class IT , class VAL >
TransformIter ( )
inline

Definition at line 761 of file itertools.hpp.

◆ TransformIter() [2/3]

template<class IT , class VAL >
template<typename FUN >
TransformIter ( IT &&  src,
FUN  trafoFunc 
)
inline

Definition at line 766 of file itertools.hpp.

◆ TransformIter() [3/3]

template<class IT , class VAL >
template<typename FUN >
TransformIter ( IT const &  src,
FUN  trafoFunc 
)
inline

Definition at line 770 of file itertools.hpp.

Member Typedef Documentation

◆ _Trafo

template<class IT , class VAL >
using _Trafo = TransformingCore<IT,VAL>
private

Definition at line 757 of file itertools.hpp.

◆ _IteratorImpl

template<class IT , class VAL >
using _IteratorImpl = IterTool<_Trafo>
private

Definition at line 758 of file itertools.hpp.

+ Inheritance diagram for TransformIter< IT, VAL >:
+ Collaboration diagram for TransformIter< IT, VAL >:

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