54 #ifndef __vtkDataArrayDispatcher_h
55 #define __vtkDataArrayDispatcher_h
86 class DefaultFunctorType,
87 typename ReturnType =
void
120 template<
class DefaultFunctorType,
typename ReturnType>
122 DefaultFunctor(&fun),
128 template<
class DefaultFunctorType,
typename ReturnType>
130 DefaultFunctor(new DefaultFunctorType()),
136 template<
class DefaultFunctorType,
typename ReturnType>
141 delete this->DefaultFunctor;
146 template <
class DefaultFunctorType,
typename ReturnType>
158 #endif // __vtkDataArrayDispatcher_h
#define vtkTemplateMacro(call)
virtual ~vtkDataArrayDispatcher()
ReturnType Go(vtkDataArray *lhs)
DefaultFunctorType * DefaultFunctor
virtual int GetDataType()=0
vtkDataArrayDispatcherPointer(vtkDataArray *array)
vtkIdType NumberOfComponents
abstract superclass for arrays of numeric data
Dispatch to functor vtkDataArrayType.