#include <reduce.h>
Public Types | |
| typedef P_sourcetype | T_sourcetype |
| typedef int | T_resulttype |
| typedef T_resulttype | T_numtype |
Public Member Functions | |
| ReduceCount () | |
| ReduceCount (T_resulttype count) | |
| int | operator() (T_sourcetype x) |
| int | 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 int | needIndex = 0 |
| static const int | canProvideInitialValue = 1 |
Protected Attributes | |
| T_resulttype | count_ |
| typedef T_resulttype ReduceCount< P_sourcetype >::T_numtype |
| typedef int ReduceCount< P_sourcetype >::T_resulttype |
| typedef P_sourcetype ReduceCount< P_sourcetype >::T_sourcetype |
| ReduceCount< P_sourcetype >::ReduceCount | ( | ) | [inline] |
References ReduceCount< P_sourcetype >::reset().
| ReduceCount< P_sourcetype >::ReduceCount | ( | T_resulttype | count | ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
| static const char* ReduceCount< P_sourcetype >::name | ( | ) | [inline, static] |
| int ReduceCount< P_sourcetype >::operator() | ( | T_sourcetype | x, | |
| int | ||||
| ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
| int ReduceCount< P_sourcetype >::operator() | ( | T_sourcetype | x | ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
| void ReduceCount< P_sourcetype >::reset | ( | T_resulttype | initialValue | ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
| void ReduceCount< P_sourcetype >::reset | ( | ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
Referenced by ReduceCount< P_sourcetype >::ReduceCount().
| T_resulttype ReduceCount< P_sourcetype >::result | ( | int | ) | [inline] |
References ReduceCount< P_sourcetype >::count_.
const int ReduceCount< P_sourcetype >::canProvideInitialValue = 1 [static] |
T_resulttype ReduceCount< P_sourcetype >::count_ [protected] |
const int ReduceCount< P_sourcetype >::needIndex = 0 [static] |
1.6.1