Public Member Functions | Protected Attributes

ArrayNDGetAll< T > Class Template Reference

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

List of all members.

Public Member Functions

 ArrayNDGetAll (T *ptr, const ArrayND< T > &arr)
 ArrayNDGetAll (ValueSeries< T > &vs, const ArrayND< T > &arr)
bool doWork (int64_t start, int64_t stop, int)
int64_t nrIterations () const

Protected Attributes

int64_t totalnr_
const ArrayND< T > & arr_
T * ptr_
ValueSeries< T > * vs_

template<class T>
class ArrayNDGetAll< T >


Constructor & Destructor Documentation

template<class T>
ArrayNDGetAll< T >::ArrayNDGetAll ( T *  ptr,
const ArrayND< T > &  arr 
) [inline]
template<class T>
ArrayNDGetAll< T >::ArrayNDGetAll ( ValueSeries< T > &  vs,
const ArrayND< T > &  arr 
) [inline]

Member Function Documentation

template<class T>
bool ArrayNDGetAll< T >::doWork ( int64_t  start,
int64_t  stop,
int  threadid 
) [inline, virtual]

The functions that does the job. The function will be called with all intervals from 0 to ParallelTask::nrIterations()-1. The function must be designed to be able to run in parallel.

Parameters:
threadid gives an identifier (between 0 and nr of threads -1) that is unique to each call to doWork.

Implements ParallelTask.

template<class T>
int64_t ArrayNDGetAll< T >::nrIterations (  )  const [inline, virtual]
Returns:
the number of times the process should be run.

Implements ParallelTask.


Member Data Documentation

template<class T>
const ArrayND<T>& ArrayNDGetAll< T >::arr_ [protected]
template<class T>
T* ArrayNDGetAll< T >::ptr_ [protected]
template<class T>
int64_t ArrayNDGetAll< T >::totalnr_ [protected]
template<class T>
ValueSeries<T>* ArrayNDGetAll< T >::vs_ [protected]