blitz Version 0.10
|
#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) const |
T_resulttype | result (int) const |
void | reset (const T_resulttype &index) const |
Static Public Member Functions | |
static const char * | name () |
Public Attributes | |
static const bool | needInit = false |
Static Public Attributes | |
static const bool | needIndex = true |
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 | ||
) | const [inline] |
void ReduceMaxIndex< P_sourcetype >::reset | ( | const T_resulttype & | index | ) | const [inline] |
T_resulttype ReduceMaxIndex< P_sourcetype >::result | ( | int | ) | const [inline] |
References ReduceMaxIndex< P_sourcetype >::index_.
T_resulttype ReduceMaxIndex< P_sourcetype >::index_ [mutable, protected] |
T_sourcetype ReduceMaxIndex< P_sourcetype >::max_ [mutable, 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 |