Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lib::iter Namespace Reference

Namespaces

namespace  anonymous_namespace{iter-chain-search.hpp}
 
namespace  test
 

Typedefs

template<class IT >
using Yield = decltype(std::declval< IT >().operator*())
 type binding helper: an iterato's actual result type
 
template<class COR >
using CoreYield = decltype(std::declval< COR >().yield())
 the result type yielded by a »state core«
 

Classes

class  CursorGear
 
struct  IndexAccessCore
 Implementation of a »IterStateCore« to access the container through an embedded index variable. More...
 
class  IterChainSearch
 Iterator based linear search mechanism, with the ability to perform consecutive search with backtracking. More...
 
struct  IterDequeStorage
 Wrapper to mark a std::deque instance for use as "state core" within lib::IterStateWrapper. More...
 
class  ProductCore
 Building block for a tupeled-iterator. More...
 

Functions

template<class SRC >
auto chainSearch (SRC &&srcData)
 setup a chain search configuration by suitably wrapping the given container.
 
template<typename... ITS>
auto buildIterTuple (ITS &&...iters)
 construction-helper: apply IterExplorer builder packaged tuple
 

Typedef Documentation

◆ Yield

template<class IT >
using Yield = decltype(std::declval<IT>().operator*())

type binding helper: an iterato's actual result type

Definition at line 154 of file iter-adapter.hpp.

◆ CoreYield

template<class COR >
using CoreYield = decltype(std::declval<COR>().yield())

the result type yielded by a »state core«

Definition at line 158 of file iter-adapter.hpp.

Function Documentation

◆ chainSearch()

template<class SRC >
auto chainSearch ( SRC &&  srcData)
inline

setup a chain search configuration by suitably wrapping the given container.

Returns
an IterChainSearch instantiation, which is an Iterator to yield all the source elements, but can be outfitted with a sequence of filter conditions, to be applied to the underlying source one by one.
Parameters
srcDataeither a »Lumiera Forward Iterator«, a reference to a STL container, or a »State Core« object.
Warning
if you capture the result of this call by an auto variable, be sure to understand that invoking any further builder operation on IterExplorer will invalidate that variable (by moving it into the augmented iterator returned from such builder call).

Definition at line 310 of file iter-chain-search.hpp.

Referenced by IterChainSearch_test::backtracking(), IterChainSearch_test::chainedIteration(), and IterChainSearch_test::simpleSearch().

+ Here is the caller graph for this function:

◆ buildIterTuple()

template<typename... ITS>
auto buildIterTuple ( ITS &&...  iters)

construction-helper: apply IterExplorer builder packaged tuple

Definition at line 45 of file iter-zip.hpp.

References lib::explore().

+ Here is the call graph for this function: