GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
Public Member Functions | List of all members
grppi::iteration_t< Transformer, Predicate > Class Template Reference

Representation of iteration pattern. Represents a iteration that can be used as a stage on a pipeline. More...

#include <iteration_pattern.h>

Public Member Functions

 iteration_t (Transformer &&t, Predicate &&p) noexcept
 Constructs a iteration with a predicate. More...
 
template<typename Item >
bool predicate (Item &&item) const
 Invokes the predicate of the iteration over a data item. More...
 
template<typename Item >
auto transform (Item &&item) const
 Applies the transformation over a data item. More...
 
template<typename T >
auto operator() (T &&item)
 Applies the transformation over a data item. More...
 

Detailed Description

template<typename Transformer, typename Predicate>
class grppi::iteration_t< Transformer, Predicate >

Representation of iteration pattern. Represents a iteration that can be used as a stage on a pipeline.

Template Parameters
PredicateCallable type for the iteration predicate.

Constructor & Destructor Documentation

template<typename Transformer , typename Predicate >
grppi::iteration_t< Transformer, Predicate >::iteration_t ( Transformer &&  t,
Predicate &&  p 
)
inlinenoexcept

Constructs a iteration with a predicate.

Parameters
pPredicate for the iteration.

Member Function Documentation

template<typename Transformer , typename Predicate >
template<typename T >
auto grppi::iteration_t< Transformer, Predicate >::operator() ( T &&  item)
inline

Applies the transformation over a data item.

template<typename Transformer , typename Predicate >
template<typename Item >
bool grppi::iteration_t< Transformer, Predicate >::predicate ( Item &&  item) const
inline

Invokes the predicate of the iteration over a data item.

template<typename Transformer , typename Predicate >
template<typename Item >
auto grppi::iteration_t< Transformer, Predicate >::transform ( Item &&  item) const
inline

Applies the transformation over a data item.


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