Public Member Functions | Protected Member Functions | Protected Attributes

SampledExtremeFinderND< T > Class Template Reference

Finds all local maximas/minimas in an ArrayND. More...

Inheritance diagram for SampledExtremeFinderND< T >:
ParallelTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 SampledExtremeFinderND (const ArrayND< T > &arr, bool minima)
int nrExtremes () const
const int * getExtremes () const

Protected Member Functions

od_int64 nrIterations () const
bool doWork (od_int64, od_int64, int)
bool findExtreme (int *) const
int indexOf (const int *) const

Protected Attributes

const ArrayND< T > & array_
ArrayNDInfoImpl relcube_
bool minima_
TypeSet< int > extremes_
Threads::ReadWriteLock lock_

Detailed Description

template<class T>
class SampledExtremeFinderND< T >

Finds all local maximas/minimas in an ArrayND.


Constructor & Destructor Documentation

template<class T >
SampledExtremeFinderND< T >::SampledExtremeFinderND ( const ArrayND< T > &  arr,
bool  minima 
) [inline]

Member Function Documentation

template<class T >
bool SampledExtremeFinderND< T >::doWork ( od_int64  start,
od_int64  stop,
int   
) [inline, protected]
template<class T >
bool SampledExtremeFinderND< T >::findExtreme ( int *  extremepos  )  const [inline, protected]
template<class T >
const int* SampledExtremeFinderND< T >::getExtremes (  )  const [inline]

Returns a pointer with positions, where ptr[0] ... ptr[ndim-1] is one position.

template<class T >
int SampledExtremeFinderND< T >::indexOf ( const int *  pos  )  const [inline, protected]
template<class T >
int SampledExtremeFinderND< T >::nrExtremes (  )  const [inline]
template<class T >
od_int64 SampledExtremeFinderND< T >::nrIterations (  )  const [inline, protected, virtual]

Implements ParallelTask.


Member Data Documentation

template<class T >
const ArrayND<T>& SampledExtremeFinderND< T >::array_ [protected]
template<class T >
TypeSet<int> SampledExtremeFinderND< T >::extremes_ [protected]
template<class T >
Threads::ReadWriteLock SampledExtremeFinderND< T >::lock_ [protected]
template<class T >
bool SampledExtremeFinderND< T >::minima_ [protected]
template<class T >
ArrayNDInfoImpl SampledExtremeFinderND< T >::relcube_ [protected]