52 #ifndef vtkDataArrayDispatcher_h 53 #define vtkDataArrayDispatcher_h 73 NumberOfTuples(array->GetNumberOfTuples()),
74 NumberOfComponents(array->GetNumberOfComponents()),
75 RawPointer(static_cast<ValueType*>(array->GetVoidPointer(0)))
84 class DefaultFunctorType,
85 typename ReturnType =
void 138 template<
class DefaultFunctorType,
typename ReturnType>
140 DefaultFunctor(&fun),
146 template<
class DefaultFunctorType,
typename ReturnType>
154 template<
class DefaultFunctorType,
typename ReturnType>
164 template <
class DefaultFunctorType,
typename ReturnType>
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...