reductor.hpp File Reference

Go to the source code of this file.

Classes

struct  reductor_fn_base< ReducingFnT, StateT, InputTs >
 Common reductor interface. More...
 
struct  reductor_fn< ReducingFnT, InitialStateT, InputTs >
 Function object that performs a reduction using a reducing function of type ReducingFnT, an initial state of type of type InitialStateT and inputs of types InputTs.... More...
 
struct  empty_reductor_fn< ReducingFnT, InitialStateT, InputTs >
 Reductor_Fn object that does not require inputs to be fed at construction time. More...
 
struct  empty_reductor_fn< ReducingFnT, InitialStateT, meta::pack< InputTs... > >
 

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::xform
 Efficient and flexible C++ implementation of transducers.
 

Functions

template<typename ReducingFnT , typename InitialStateT , typename... InputTs>
auto reductor (ReducingFnT &&step, InitialStateT &&state, InputTs &&...ins) -> reductor_fn< estd::decay_t< ReducingFnT >, estd::decay_t< InitialStateT >, estd::decay_t< InputTs >... >
 Constructs a reductor_fn object with deduced argument types. More...
 
template<typename... InputTs, typename ReducingFnT , typename InitialStateT >
auto empty_reductor (ReducingFnT &&step, InitialStateT &&state) -> empty_reductor_fn< estd::decay_t< ReducingFnT >, estd::decay_t< InitialStateT >, estd::decay_t< InputTs >... >
 Constructs an empty_reductor_fn object with deduced argument types. More...
 
Fork me on GitHub