#include <reduce.h>
Public Types | |
typedef P_sourcetype | T_sourcetype |
typedef int | T_resulttype |
typedef T_resulttype | T_numtype |
Public Member Functions | |
ReduceMaxIndex () | |
bool | operator() (const T_sourcetype &x, const T_resulttype &index) |
T_resulttype | result (int) const |
void | reset (const T_resulttype &index) |
Static Public Member Functions | |
static const char * | name () |
Static Public Attributes | |
static const bool | needIndex = true |
static const bool | needInit = false |
Protected Attributes | |
T_sourcetype | max_ |
T_resulttype | index_ |
typedef T_resulttype ReduceMaxIndex< P_sourcetype >::T_numtype |
typedef int ReduceMaxIndex< P_sourcetype >::T_resulttype |
typedef P_sourcetype ReduceMaxIndex< P_sourcetype >::T_sourcetype |
ReduceMaxIndex< P_sourcetype >::ReduceMaxIndex | ( | ) | [inline] |
static const char* ReduceMaxIndex< P_sourcetype >::name | ( | ) | [inline, static] |
bool ReduceMaxIndex< P_sourcetype >::operator() | ( | const T_sourcetype & | x, | |
const T_resulttype & | index | |||
) | [inline] |
void ReduceMaxIndex< P_sourcetype >::reset | ( | const T_resulttype & | index | ) | [inline] |
T_resulttype ReduceMaxIndex< P_sourcetype >::result | ( | int | ) | const [inline] |
References ReduceMaxIndex< P_sourcetype >::index_.
T_resulttype ReduceMaxIndex< P_sourcetype >::index_ [protected] |
T_sourcetype ReduceMaxIndex< P_sourcetype >::max_ [protected] |
Referenced by ReduceMaxIndex< P_sourcetype >::operator()(), and ReduceMaxIndex< P_sourcetype >::reset().
const bool ReduceMaxIndex< P_sourcetype >::needIndex = true [static] |
const bool ReduceMaxIndex< P_sourcetype >::needInit = false [static] |