#include <reduce.h>
Public Types | |
typedef P_sourcetype | T_sourcetype |
typedef P_resulttype | T_resulttype |
typedef T_resulttype | T_numtype |
Public Member Functions | |
ReduceSum () | |
ReduceSum (T_resulttype initialValue) | |
bool | operator() (T_sourcetype x) |
bool | operator() (T_sourcetype x, int) |
T_resulttype | result (int) |
void | reset () |
void | reset (T_resulttype initialValue) |
Static Public Member Functions | |
static const char * | name () |
Static Public Attributes | |
static const bool | needIndex = false |
static const bool | canProvideInitialValue = true |
Protected Attributes | |
T_resulttype | sum_ |
typedef P_sourcetype ReduceSum< P_sourcetype, P_resulttype >::T_sourcetype |
typedef P_resulttype ReduceSum< P_sourcetype, P_resulttype >::T_resulttype |
typedef T_resulttype ReduceSum< P_sourcetype, P_resulttype >::T_numtype |
ReduceSum< P_sourcetype, P_resulttype >::ReduceSum | ( | ) | [inline] |
ReduceSum< P_sourcetype, P_resulttype >::ReduceSum | ( | T_resulttype | initialValue | ) | [inline] |
bool ReduceSum< P_sourcetype, P_resulttype >::operator() | ( | T_sourcetype | x | ) | [inline] |
bool ReduceSum< P_sourcetype, P_resulttype >::operator() | ( | T_sourcetype | x, | |
int | ||||
) | [inline] |
T_resulttype ReduceSum< P_sourcetype, P_resulttype >::result | ( | int | ) | [inline] |
void ReduceSum< P_sourcetype, P_resulttype >::reset | ( | ) | [inline] |
void ReduceSum< P_sourcetype, P_resulttype >::reset | ( | T_resulttype | initialValue | ) | [inline] |
static const char* ReduceSum< P_sourcetype, P_resulttype >::name | ( | ) | [inline, static] |
const bool ReduceSum< P_sourcetype, P_resulttype >::needIndex = false [static] |
const bool ReduceSum< P_sourcetype, P_resulttype >::canProvideInitialValue = true [static] |
T_resulttype ReduceSum< P_sourcetype, P_resulttype >::sum_ [protected] |