52 #ifndef vtkDataArrayDispatcher_h 53 #define vtkDataArrayDispatcher_h 84 class DefaultFunctorType,
85 typename ReturnType =
void 138 template<
class DefaultFunctorType,
typename ReturnType>
140 DefaultFunctor(&fun),
146 template<
class DefaultFunctorType,
typename ReturnType>
148 DefaultFunctor(new DefaultFunctorType()),
154 template<
class DefaultFunctorType,
typename ReturnType>
159 delete this->DefaultFunctor;
164 template <
class DefaultFunctorType,
typename ReturnType>
170 vtkTemplateMacro(
return (*this->DefaultFunctor) (
176 #endif // vtkDataArrayDispatcher_h virtual ~vtkDataArrayDispatcher()
ReturnType Go(vtkDataArray *lhs)
Execute the default functor with the passed in vtkDataArray;.
DefaultFunctorType * DefaultFunctor
virtual int GetDataType()=0
Return the underlying data type.
vtkDataArrayDispatcherPointer(vtkDataArray *array)
vtkIdType NumberOfComponents
abstract superclass for arrays of numeric data
Dispatch to functor vtkDataArrayType.
vtkDataArrayDispatcher()
Default constructor which will create an instance of the DefaultFunctorType and use that single insta...