STK++ 0.9.13
STK::hidden::MaxVisitor< Type_ > Struct Template Reference

Visitor computing the max of all the coefficients of the Array. More...

#include <STK_Visitors.h>

Public Types

typedef Type_ Type
 
typedef RemoveConst< Type >::Type constTypeConst
 

Public Member Functions

 MaxVisitor ()
 
void operator() (Type const &value, int i, int j)
 
void operator() (Type const &value, int i)
 
TypeConst result () const
 

Public Attributes

Type res_
 

Detailed Description

template<typename Type_>
struct STK::hidden::MaxVisitor< Type_ >

Visitor computing the max of all the coefficients of the Array.

See also
ExprBase::maxElt(int, int), ExprBase::min()

Definition at line 185 of file STK_Visitors.h.

Member Typedef Documentation

◆ Type

template<typename Type_ >
typedef Type_ STK::hidden::MaxVisitor< Type_ >::Type

Definition at line 187 of file STK_Visitors.h.

◆ TypeConst

template<typename Type_ >
typedef RemoveConst<Type>::Type const& STK::hidden::MaxVisitor< Type_ >::TypeConst

Definition at line 188 of file STK_Visitors.h.

Constructor & Destructor Documentation

◆ MaxVisitor()

template<typename Type_ >
STK::hidden::MaxVisitor< Type_ >::MaxVisitor ( )
inline

Definition at line 191 of file STK_Visitors.h.

191: res_(-Arithmetic<Type>::max()) {}

Member Function Documentation

◆ operator()() [1/2]

template<typename Type_ >
void STK::hidden::MaxVisitor< Type_ >::operator() ( Type const value,
int  i 
)
inline

Definition at line 194 of file STK_Visitors.h.

195 { res_ = std::max(res_,value);}

References STK::hidden::MaxVisitor< Type_ >::res_.

◆ operator()() [2/2]

template<typename Type_ >
void STK::hidden::MaxVisitor< Type_ >::operator() ( Type const value,
int  i,
int  j 
)
inline

Definition at line 192 of file STK_Visitors.h.

193 { res_ = std::max(res_,value);}

References STK::hidden::MaxVisitor< Type_ >::res_.

◆ result()

template<typename Type_ >
TypeConst STK::hidden::MaxVisitor< Type_ >::result ( ) const
inline

Definition at line 196 of file STK_Visitors.h.

196{ return res_;}

References STK::hidden::MaxVisitor< Type_ >::res_.

Member Data Documentation

◆ res_


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