54 #ifndef vtkDataArrayDispatcher_h
55 #define vtkDataArrayDispatcher_h
57 #include "vtkConfigure.h"
59 #ifndef VTK_LEGACY_REMOVE
89 template <
class DefaultFunctorType,
typename ReturnType =
void>
140 template <
class DefaultFunctorType,
typename ReturnType>
142 DefaultFunctorType& fun)
143 : DefaultFunctor(&fun)
150 template <
class DefaultFunctorType,
typename ReturnType>
152 : DefaultFunctor(new DefaultFunctorType())
159 template <
class DefaultFunctorType,
typename ReturnType>
164 delete this->DefaultFunctor;
169 template <
class DefaultFunctorType,
typename ReturnType>
virtual int GetDataType() const =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