#include <reduce.h>
Public Types | |
typedef P_sourcetype | T_sourcetype |
typedef MinMaxValue< P_sourcetype > | T_resulttype |
typedef T_resulttype | T_numtype |
Public Member Functions | |
ReduceMinMax () | |
bool | operator() (T_sourcetype x, const int=0) |
T_resulttype | result (int) |
void | reset (P_sourcetype initialValue) |
Static Public Member Functions | |
static const char * | name () |
Static Public Attributes | |
static const bool | needIndex = false |
static const bool | needInit = true |
Protected Attributes | |
T_resulttype | minmax_ |
typedef T_resulttype ReduceMinMax< P_sourcetype >::T_numtype |
typedef MinMaxValue<P_sourcetype> ReduceMinMax< P_sourcetype >::T_resulttype |
typedef P_sourcetype ReduceMinMax< P_sourcetype >::T_sourcetype |
ReduceMinMax< P_sourcetype >::ReduceMinMax | ( | ) | [inline] |
static const char* ReduceMinMax< P_sourcetype >::name | ( | ) | [inline, static] |
bool ReduceMinMax< P_sourcetype >::operator() | ( | T_sourcetype | x, | |
const | int = 0 | |||
) | [inline] |
References MinMaxValue< T >::max, MinMaxValue< T >::min, and ReduceMinMax< P_sourcetype >::minmax_.
void ReduceMinMax< P_sourcetype >::reset | ( | P_sourcetype | initialValue | ) | [inline] |
References ReduceMinMax< P_sourcetype >::minmax_.
T_resulttype ReduceMinMax< P_sourcetype >::result | ( | int | ) | [inline] |
References ReduceMinMax< P_sourcetype >::minmax_.
T_resulttype ReduceMinMax< P_sourcetype >::minmax_ [protected] |
const bool ReduceMinMax< P_sourcetype >::needIndex = false [static] |
const bool ReduceMinMax< P_sourcetype >::needInit = true [static] |