21 #ifndef GRPPI_COMMON_PATTERNS_H 22 #define GRPPI_COMMON_PATTERNS_H 28 template <
typename E,
typename Stage,
typename ... Stages>
32 std::tuple<Stage , Stages ...>
stages;
37 template <
typename E,
class Combiner,
typename Identity>
47 exectype{s}, window_size{ws}, offset{off}, identity{iden}, combine_op{comb} {}
50 template <
typename E,
class Operation>
57 farm_info(E &s,Operation f) : task{f}, exectype{s}, farmtype{} {};
60 template <
typename E,
class Operation>
67 filter_info(E &s,Operation f) : task{f}, exectype{s}, filtertype{} {};
Definition: callable_traits.h:24
Operation task
Definition: patterns.h:54
Definition: patterns.h:61
E & exectype
Definition: patterns.h:55
Definition: patterns.h:38
Identity identity
Definition: patterns.h:44
Combiner combine_op
Definition: patterns.h:41
Definition: patterns.h:29
farm_info(E &s, Operation f)
Definition: patterns.h:57
E & exectype
Definition: patterns.h:31
std::tuple< Stage, Stages... > stages
Definition: patterns.h:32
E & exectype
Definition: patterns.h:65
int farmtype
Definition: patterns.h:56
Definition: patterns.h:51
int filtertype
Definition: patterns.h:66
pipeline_info(E &p, Stage s, Stages...sts)
Definition: patterns.h:33
int window_size
Definition: patterns.h:42
filter_info(E &s, Operation f)
Definition: patterns.h:67
pipeline_info(E &p, std::tuple< Stage, Stages... > st)
Definition: patterns.h:34
Operation task
Definition: patterns.h:64
E & exectype
Definition: patterns.h:45
int offset
Definition: patterns.h:43
reduction_info(E &s, int ws, int off, Identity iden, Combiner comb)
Definition: patterns.h:46