Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lib::iter_source Namespace Reference

Functions

template<class MAP >
_MapT< MAP >::KeyIter eachDistinctKey (MAP &map)
 
template<class CON >
_SeqT< CON >::Iter eachEntry (CON &container)
 
template<class IT >
_RangeT< IT >::Iter eachEntry (IT const &begin, IT const &end)
 
template<class MAP >
_MapT< MAP >::KeyIter eachMapKey (MAP &map)
 
template<class MAP >
_MapT< MAP >::ValIter eachMapVal (MAP &map)
 
template<class MAP >
_MapT< MAP >::ValIter eachValForKey (MAP &map, typename _MapT< MAP >::Key key)
 
template<class IT , class FUN >
_TransformIterT< IT, FUN >::Iter transform (IT const &source, FUN processingFunc)
 pipes a given Lumiera Forward Iterator through a transformation function and wraps the resulting transforming Iterator, exposing just an IterSource. More...
 
template<class IT >
_IterT< IT >::Iter wrapIter (IT const &source)
 wraps a given Lumiera Forward Iterator, exposing just a IterSource based frontend. More...
 

Function Documentation

_IterT<IT>::Iter lib::iter_source::wrapIter ( IT const &  source)

wraps a given Lumiera Forward Iterator, exposing just a IterSource based frontend.

Definition at line 332 of file iter-source.hpp.

References IterSource< TY >::build().

Referenced by eachDistinctKey(), eachMapKey(), eachMapVal(), eachValForKey(), and ScopeLocator::locate().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_TransformIterT<IT,FUN>::Iter lib::iter_source::transform ( IT const &  source,
FUN  processingFunc 
)

pipes a given Lumiera Forward Iterator through a transformation function and wraps the resulting transforming Iterator, exposing just an IterSource.

This convenience shortcut can be used to build a processing chain; the resulting IterSource will hide any detail types involved.

Note
as with any IterSource, there is one virtual function call for every fetched element.

Definition at line 351 of file iter-source.hpp.

References IterSource< TY >::build(), and lib::transformIterator().

Referenced by EngineService::calculate(), OutputSlotImplBase::ConnectionManager< CON >::getOpenedSinks(), PlayProcess::initiate(), and IterSource_test::verify_transformIter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_MapT<MAP>::KeyIter lib::iter_source::eachMapKey ( MAP &  map)
Returns
a Lumiera Forward Iterator to yield all the keys of the given Map or Hashtable

Definition at line 367 of file iter-source.hpp.

References wrapIter().

Referenced by PlacementIndex::Table::_eachEntry_4check(), and IterSource_test::verify_MapWrappers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_MapT<MAP>::ValIter lib::iter_source::eachMapVal ( MAP &  map)
Returns
a Lumiera Forward Iterator to yield all the values of the given Map or Hashtable

Definition at line 381 of file iter-source.hpp.

References wrapIter().

Referenced by IterSource_test::verify_MapWrappers().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_MapT<MAP>::KeyIter lib::iter_source::eachDistinctKey ( MAP &  map)
Returns
a Lumiera Forward Iterator to yield all distinct keys of a Multimap
Warning
we do a full table scan to find the distinct keys

Definition at line 397 of file iter-source.hpp.

References lib::filterRepetitions(), and wrapIter().

+ Here is the call graph for this function:

_MapT<MAP>::ValIter lib::iter_source::eachValForKey ( MAP &  map,
typename _MapT< MAP >::Key  key 
)
Returns
a Lumiera Forward Iterator to yield all values associated to the given key within this Map or Multimap
Note
obviously in case of a Map we'll get at most one result.

Definition at line 412 of file iter-source.hpp.

References wrapIter().

+ Here is the call graph for this function:

_SeqT<CON>::Iter lib::iter_source::eachEntry ( CON &  container)
Parameters
containera STL-like container, providing
  • a typedef iterator
  • functions begin() and end()
Returns
a Lumiera Forward Iterator yielding all values starting with begin and excluding end .

Definition at line 431 of file iter-source.hpp.

References IterSource< TY >::build().

Referenced by IterSource_test::verify_simpleIters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

_RangeT<IT>::Iter lib::iter_source::eachEntry ( IT const &  begin,
IT const &  end 
)
Returns
a Lumiera Forward Iterator yielding all values defined by a classical Iterator range.

Definition at line 446 of file iter-source.hpp.

References IterSource< TY >::build().

+ Here is the call graph for this function: