55#ifndef vtkDataArrayDispatcher_h
56#define vtkDataArrayDispatcher_h
87 class DefaultFunctorType,
88 typename ReturnType =
void
141template<
class DefaultFunctorType,
typename ReturnType>
143 DefaultFunctor(&fun),
149template<
class DefaultFunctorType,
typename ReturnType>
151 DefaultFunctor(new DefaultFunctorType()),
157template<
class DefaultFunctorType,
typename ReturnType>
162 delete this->DefaultFunctor;
167template <
class DefaultFunctorType,
typename ReturnType>
173 vtkTemplateMacro(
return (*this->DefaultFunctor) (
virtual int GetDataType()=0
Return the underlying data type.
Dispatch to functor vtkDataArrayType.
virtual ~vtkDataArrayDispatcher()
DefaultFunctorType * DefaultFunctor
ReturnType Go(vtkDataArray *lhs)
Execute the default functor with the passed in vtkDataArray;.
vtkDataArrayDispatcher()
Default constructor which will create an instance of the DefaultFunctorType and use that single insta...
abstract superclass for arrays of numeric data
vtkDataArrayDispatcherPointer(vtkDataArray *array)
vtkIdType NumberOfComponents