VTK
|
Dispatch to functor vtkDataArrayType. More...
#include <vtkDataArrayDispatcher.h>
Public Member Functions | |
vtkDataArrayDispatcher (DefaultFunctorType &f) | |
Specify the functor that is to be used when dispatching. More... | |
vtkDataArrayDispatcher () | |
Default constructor which will create an instance of the DefaultFunctorType and use that single instance for all calls. More... | |
virtual | ~vtkDataArrayDispatcher () |
ReturnType | Go (vtkDataArray *lhs) |
Execute the default functor with the passed in vtkDataArray;. More... | |
Protected Attributes | |
DefaultFunctorType * | DefaultFunctor |
bool | OwnsFunctor |
Dispatch to functor vtkDataArrayType.
vtkDataArrayDispatcher is a class that allows calling a functor based on the data type of the vtkDataArray subclass. This is a wrapper around the vtkTemplateMacro (VTK_TT) to allow easier implementation and readability, while at the same time the ability to use statefull functors.
Note: By default the return type is void. Note: The functor parameter must be of type vtkDataArrayDispatcherPointer
The functors that are passed around can contain state, and are allowed to be const or non const. If you are using a functor that does have state, make sure your copy constructor is correct.
Definition at line 90 of file vtkDataArrayDispatcher.h.
vtkDataArrayDispatcher< DefaultFunctorType, ReturnType >::vtkDataArrayDispatcher | ( | DefaultFunctorType & | f | ) |
Specify the functor that is to be used when dispatching.
This allows you to specify a statefull functor.
Definition at line 142 of file vtkDataArrayDispatcher.h.
vtkDataArrayDispatcher< DefaultFunctorType, ReturnType >::vtkDataArrayDispatcher | ( | ) |
Default constructor which will create an instance of the DefaultFunctorType and use that single instance for all calls.
Definition at line 150 of file vtkDataArrayDispatcher.h.
|
virtual |
Definition at line 158 of file vtkDataArrayDispatcher.h.
ReturnType vtkDataArrayDispatcher< DefaultFunctorType, ReturnType >::Go | ( | vtkDataArray * | lhs | ) |
Execute the default functor with the passed in vtkDataArray;.
Definition at line 169 of file vtkDataArrayDispatcher.h.
|
protected |
Definition at line 134 of file vtkDataArrayDispatcher.h.
|
protected |
Definition at line 135 of file vtkDataArrayDispatcher.h.