VTK  9.4.20241223
Macros | Typedefs | Functions
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 = vtkImplicitArray< std::function< T(int)> >
 A utility alias for wrapping std::function in implicit arrays.
 

Functions

 vtkExternStdFunctionTemplateMacro (extern template class VTKCOMMONCORE_EXPORT vtkImplicitArray, std::function, int)
 

Macro Definition Documentation

◆ VTK_STD_FUNCTION_ARRAY_TEMPLATE_EXTERN

#define VTK_STD_FUNCTION_ARRAY_TEMPLATE_EXTERN

Definition at line 58 of file vtkStdFunctionArray.h.

Typedef Documentation

◆ vtkStdFunctionArray

template<typename T >
vtkStdFunctionArray

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

◆ vtkExternStdFunctionTemplateMacro()

vtkExternStdFunctionTemplateMacro ( extern template class VTKCOMMONCORE_EXPORT  vtkImplicitArray,
std::function  ,
int   
)