Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
vigra_ext::FindComponentsMinMax< VALUETYPE > Class Template Reference

#include <utils.h>

Public Types

typedef VALUETYPE argument_type
 the functor's argument type More...
 
typedef VALUETYPE result_type
 the functor's result type More...
 
typedef VALUETYPE value_type
 

Public Member Functions

 FindComponentsMinMax ()
 init min and max More...
 
void reset ()
 (re-)init functor (clear min, max) More...
 
void operator() (argument_type const &v)
 update min and max More...
 
void operator() (vigra::RGBValue< VALUETYPE > const &v)
 update min and max with components of RGBValue<VALUETYPE> More...
 

Public Attributes

VALUETYPE min
 the current min More...
 
VALUETYPE max
 the current max More...
 
unsigned int count
 the number of values processed so far More...
 

Detailed Description

template<class VALUETYPE>
class vigra_ext::FindComponentsMinMax< VALUETYPE >

Definition at line 301 of file utils.h.

Member Typedef Documentation

template<class VALUETYPE>
typedef VALUETYPE vigra_ext::FindComponentsMinMax< VALUETYPE >::argument_type

the functor's argument type

Definition at line 305 of file utils.h.

template<class VALUETYPE>
typedef VALUETYPE vigra_ext::FindComponentsMinMax< VALUETYPE >::result_type

the functor's result type

Definition at line 307 of file utils.h.

template<class VALUETYPE>
typedef VALUETYPE vigra_ext::FindComponentsMinMax< VALUETYPE >::value_type
Deprecated:
use argument_type

Definition at line 309 of file utils.h.

Constructor & Destructor Documentation

template<class VALUETYPE>
vigra_ext::FindComponentsMinMax< VALUETYPE >::FindComponentsMinMax ( )
inline

init min and max

Definition at line 312 of file utils.h.

Member Function Documentation

template<class VALUETYPE>
void vigra_ext::FindComponentsMinMax< VALUETYPE >::operator() ( argument_type const &  v)
inline
template<class VALUETYPE>
void vigra_ext::FindComponentsMinMax< VALUETYPE >::operator() ( vigra::RGBValue< VALUETYPE > const &  v)
inline
template<class VALUETYPE>
void vigra_ext::FindComponentsMinMax< VALUETYPE >::reset ( )
inline

(re-)init functor (clear min, max)

Definition at line 316 of file utils.h.

References vigra_ext::FindComponentsMinMax< VALUETYPE >::count.

Member Data Documentation

template<class VALUETYPE>
unsigned int vigra_ext::FindComponentsMinMax< VALUETYPE >::count

the number of values processed so far

Definition at line 366 of file utils.h.

Referenced by vigra_ext::FindComponentsMinMax< VALUETYPE >::operator()(), and vigra_ext::FindComponentsMinMax< VALUETYPE >::reset().

template<class VALUETYPE>
VALUETYPE vigra_ext::FindComponentsMinMax< VALUETYPE >::max
template<class VALUETYPE>
VALUETYPE vigra_ext::FindComponentsMinMax< VALUETYPE >::min

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