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

Visitor computing the min 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

 MinVisitor ()
 
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::MinVisitor< Type_ >

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

See also
ExprBase::minElt(int, int)

Definition at line 147 of file STK_Visitors.h.

Member Typedef Documentation

◆ Type

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

Definition at line 149 of file STK_Visitors.h.

◆ TypeConst

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

Definition at line 150 of file STK_Visitors.h.

Constructor & Destructor Documentation

◆ MinVisitor()

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

Definition at line 153 of file STK_Visitors.h.

153: res_(Arithmetic<Type>::max()) {}

Member Function Documentation

◆ operator()() [1/2]

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

Definition at line 156 of file STK_Visitors.h.

157 { res_ = std::min(res_,value);}

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

◆ operator()() [2/2]

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

Definition at line 154 of file STK_Visitors.h.

155 { res_ = std::min(res_,value);}

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

◆ result()

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

Definition at line 158 of file STK_Visitors.h.

158{ return res_;}

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

Member Data Documentation

◆ res_


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