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>
180 #endif // vtkDataArrayDispatcher_h virtual ~vtkDataArrayDispatcher()
ReturnType Go(vtkDataArray *lhs)
Execute the default functor with the passed in vtkDataArray;.
DefaultFunctorType * DefaultFunctor
vtkDataArrayDispatcherPointer(vtkDataArray *array)
vtkIdType NumberOfComponents
abstract superclass for arrays of numeric data
virtual int GetDataType() const =0
Return the underlying data type.
Dispatch to functor vtkDataArrayType.
vtkDataArrayDispatcher()
Default constructor which will create an instance of the DefaultFunctorType and use that single insta...