#include <reduce.h>
Collaboration diagram for ReduceSum< P_sourcetype, P_resulttype >:
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 | |
const char * | name () |
Static Public Attributes | |
const bool | needIndex = false canProvideInitialValue = true |
Protected Attributes | |
T_resulttype | sum_ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|