54 #ifndef vtkDataArrayDispatcher_h
55 #define vtkDataArrayDispatcher_h
79 : NumberOfTuples(array->GetNumberOfTuples())
80 , NumberOfComponents(array->GetNumberOfComponents())
81 , RawPointer(static_cast<
ValueType*>(array->GetVoidPointer(0)))
89 template <
class DefaultFunctorType,
typename ReturnType =
void>
141 template <
class DefaultFunctorType,
typename ReturnType>
144 DefaultFunctorType& fun)
145 : DefaultFunctor(&fun)
152 template <
class DefaultFunctorType,
typename ReturnType>
155 : DefaultFunctor(new DefaultFunctorType())
162 template <
class DefaultFunctorType,
typename ReturnType>
168 delete this->DefaultFunctor;
173 template <
class DefaultFunctorType,
typename ReturnType>
177 switch (lhs->GetDataType())
Dispatch to functor vtkDataArrayType.
DefaultFunctorType * DefaultFunctor
abstract superclass for arrays of numeric data
vtkDataArrayDispatcherPointer(vtkDataArray *array)
vtkIdType NumberOfComponents
#define VTK_DEPRECATED_IN_9_0_0(reason)