blitz Version 1.0.2
Loading...
Searching...
No Matches
blitz::ReduceMaxIndex< P_sourcetype > Class Template Reference

#include <reduce.h>

Collaboration diagram for blitz::ReduceMaxIndex< P_sourcetype >:
Collaboration graph

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 ()
 

Static Public Attributes

static const bool needIndex = true
 
static const bool needInit = false
 

Protected Attributes

T_sourcetype max_
 
T_resulttype index_
 

Member Typedef Documentation

◆ T_numtype

template<typename P_sourcetype>
typedef T_resulttype blitz::ReduceMaxIndex< P_sourcetype >::T_numtype

◆ T_resulttype

template<typename P_sourcetype>
typedef int blitz::ReduceMaxIndex< P_sourcetype >::T_resulttype

◆ T_sourcetype

template<typename P_sourcetype>
typedef P_sourcetype blitz::ReduceMaxIndex< P_sourcetype >::T_sourcetype

Constructor & Destructor Documentation

◆ ReduceMaxIndex()

template<typename P_sourcetype>
blitz::ReduceMaxIndex< P_sourcetype >::ReduceMaxIndex ( )
inline

Member Function Documentation

◆ name()

template<typename P_sourcetype>
static const char * blitz::ReduceMaxIndex< P_sourcetype >::name ( )
inlinestatic

◆ operator()()

template<typename P_sourcetype>
bool blitz::ReduceMaxIndex< P_sourcetype >::operator() ( const T_sourcetype & x,
const T_resulttype & index ) const
inline

References index_, and max_.

◆ reset()

template<typename P_sourcetype>
void blitz::ReduceMaxIndex< P_sourcetype >::reset ( const T_resulttype & index) const
inline

References index_, and max_.

◆ result()

template<typename P_sourcetype>
T_resulttype blitz::ReduceMaxIndex< P_sourcetype >::result ( int ) const
inline

References index_.

Member Data Documentation

◆ index_

template<typename P_sourcetype>
T_resulttype blitz::ReduceMaxIndex< P_sourcetype >::index_
mutableprotected

Referenced by operator()(), reset(), and result().

◆ max_

template<typename P_sourcetype>
T_sourcetype blitz::ReduceMaxIndex< P_sourcetype >::max_
mutableprotected

Referenced by operator()(), and reset().

◆ needIndex

template<typename P_sourcetype>
const bool blitz::ReduceMaxIndex< P_sourcetype >::needIndex = true
static

◆ needInit

template<typename P_sourcetype>
const bool blitz::ReduceMaxIndex< P_sourcetype >::needInit = false
static

The documentation for this class was generated from the following file: