Representation of pipeline pattern. Represents a pipeline with multiple chained transformers.
More...
#include <pipeline_pattern.h>
|
| pipeline_t (Transformers &&... others) noexcept |
| Constructs a pipeline with several transformers. More...
|
|
template<std::size_t index, typename T , typename std::enable_if< index==(sizeof...(Transformers) -1), int >::type = 0> |
auto | invoke_all (T item) const |
|
template<std::size_t index, typename T , typename std::enable_if< index !=(sizeof...(Transformers) -1), int >::type = 0> |
auto | invoke_all (T item) const |
|
template<typename T > |
auto | operator() (T item) const |
|
template<std::size_t I, typename T > |
auto | invoke (T &&item) const |
| Invokes a trasnformer from the pipeline. More...
|
|
template<std::size_t I> |
auto | stage () const noexcept |
| Gets a transformer from the pipeline. More...
|
|
auto | transformers () const noexcept |
|
template<typename ... Transformers>
class grppi::pipeline_t< Transformers >
Representation of pipeline pattern. Represents a pipeline with multiple chained transformers.
- Template Parameters
-
Transformer | Callable type for the first transformer. |
OtherTransformers | Callable types for the rest of transformers. |
◆ transformers_type
template<typename ... Transformers>
◆ pipeline_t()
template<typename ... Transformers>
Constructs a pipeline with several transformers.
- Parameters
-
t | Transformer for the first stage of the pipeline. |
others | Rest of transformers for the other stages of the pipeline. |
◆ invoke()
template<typename ... Transformers>
template<std::size_t I, typename T >
Invokes a trasnformer from the pipeline.
- Template Parameters
-
◆ invoke_all() [1/2]
template<typename ... Transformers>
template<std::size_t index, typename T , typename std::enable_if< index==(sizeof...(Transformers) -1), int >::type = 0>
◆ invoke_all() [2/2]
template<typename ... Transformers>
template<std::size_t index, typename T , typename std::enable_if< index !=(sizeof...(Transformers) -1), int >::type = 0>
◆ operator()()
template<typename ... Transformers>
template<typename T >
◆ stage()
template<typename ... Transformers>
template<std::size_t I>
Gets a transformer from the pipeline.
- Template Parameters
-
I | index into the pipeline. |
- Returns
- The selected transformer object.
◆ transformers()
template<typename ... Transformers>
The documentation for this class was generated from the following file: