VTK  9.5.20251214
vtkStdFunctionArray.h File Reference
#include "vtkCommonCoreModule.h"
#include "vtkImplicitArray.h"
#include <functional>
Include dependency graph for vtkStdFunctionArray.h:

Go to the source code of this file.

Macros

#define VTK_STD_FUNCTION_ARRAY_TEMPLATE_EXTERN
 

Typedefs

template<typename T>
using vtkStdFunctionArray
 A utility alias for wrapping std::function in implicit arrays.
 

Functions

 vtkExternStdFunctionWithParameterTemplateMacro (extern template class VTKCOMMONCORE_EXPORT vtkImplicitArray, std::function, int, vtkArrayTypes::VTK_STD_FUNCTION_ARRAY)
 

Macro Definition Documentation

◆ VTK_STD_FUNCTION_ARRAY_TEMPLATE_EXTERN

#define VTK_STD_FUNCTION_ARRAY_TEMPLATE_EXTERN

Definition at line 63 of file vtkStdFunctionArray.h.

Typedef Documentation

◆ vtkStdFunctionArray

template<typename T>
using vtkStdFunctionArray
Initial value:
A read only array class that wraps an implicit function from integers to any value type supported by ...
@ VTK_STD_FUNCTION_ARRAY
Definition vtkType.h:95

A utility alias for wrapping std::function in implicit arrays.

The main goal behind this alias is to be able to offer some semi-flexible instantiations of implicit arrays that can work with the vtkArrayDispatch mechanisms.

In order to be usefully included in the dispatchers, these arrays need to be instantiated at the vtk library compile time. As such, they need to be compilable without knowing the exact function/mapping to include in the backend. This is why std::function is used as the backend here.

See also
vtkImplicitArray

Definition at line 39 of file vtkStdFunctionArray.h.

Function Documentation

◆ vtkExternStdFunctionWithParameterTemplateMacro()

vtkExternStdFunctionWithParameterTemplateMacro ( extern template class VTKCOMMONCORE_EXPORT vtkImplicitArray,
std::function ,
int ,
vtkArrayTypes::VTK_STD_FUNCTION_ARRAY  )