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