#include <reduce.h>
Public Types | |
typedef P_sourcetype | T_sourcetype |
typedef int | T_resulttype |
typedef T_resulttype | T_numtype |
Public Member Functions | |
ReduceMinIndex () | |
ReduceMinIndex (T_resulttype min) | |
int | operator() (T_sourcetype x) |
int | operator() (T_sourcetype x, int index) |
T_resulttype | result (int) |
void | reset () |
void | reset (T_resulttype) |
Static Public Member Functions | |
static const char * | name () |
Static Public Attributes | |
static const int | needIndex = 1 |
static const int | canProvideInitialValue = 0 |
Protected Attributes | |
T_sourcetype | min_ |
int | index_ |
typedef T_resulttype ReduceMinIndex< P_sourcetype >::T_numtype |
typedef int ReduceMinIndex< P_sourcetype >::T_resulttype |
typedef P_sourcetype ReduceMinIndex< P_sourcetype >::T_sourcetype |
ReduceMinIndex< P_sourcetype >::ReduceMinIndex | ( | ) | [inline] |
References ReduceMinIndex< P_sourcetype >::reset().
ReduceMinIndex< P_sourcetype >::ReduceMinIndex | ( | T_resulttype | min | ) | [inline] |
References ReduceMinIndex< P_sourcetype >::reset().
static const char* ReduceMinIndex< P_sourcetype >::name | ( | ) | [inline, static] |
int ReduceMinIndex< P_sourcetype >::operator() | ( | T_sourcetype | x, | |
int | index | |||
) | [inline] |
int ReduceMinIndex< P_sourcetype >::operator() | ( | T_sourcetype | x | ) | [inline] |
void ReduceMinIndex< P_sourcetype >::reset | ( | T_resulttype | ) | [inline] |
References ReduceMinIndex< P_sourcetype >::reset().
void ReduceMinIndex< P_sourcetype >::reset | ( | ) | [inline] |
T_resulttype ReduceMinIndex< P_sourcetype >::result | ( | int | ) | [inline] |
References ReduceMinIndex< P_sourcetype >::index_.
const int ReduceMinIndex< P_sourcetype >::canProvideInitialValue = 0 [static] |
int ReduceMinIndex< P_sourcetype >::index_ [protected] |
T_sourcetype ReduceMinIndex< P_sourcetype >::min_ [protected] |
Referenced by ReduceMinIndex< P_sourcetype >::operator()(), and ReduceMinIndex< P_sourcetype >::reset().
const int ReduceMinIndex< P_sourcetype >::needIndex = 1 [static] |