55 #ifndef vtkDataArrayDispatcher_h
56 #define vtkDataArrayDispatcher_h
76 NumberOfTuples(array->GetNumberOfTuples()),
77 NumberOfComponents(array->GetNumberOfComponents()),
78 RawPointer(static_cast<ValueType*>(array->GetVoidPointer(0)))
87 class DefaultFunctorType,
88 typename ReturnType =
void
141 template<
class DefaultFunctorType,
typename ReturnType>
143 DefaultFunctor(&fun),
149 template<
class DefaultFunctorType,
typename ReturnType>
151 DefaultFunctor(new DefaultFunctorType()),
157 template<
class DefaultFunctorType,
typename ReturnType>
162 delete this->DefaultFunctor;
167 template <
class DefaultFunctorType,
typename ReturnType>
173 vtkTemplateMacro(
return (*this->DefaultFunctor) (
179 #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...