4#ifndef vtkAffineImplicitBackend_h
5#define vtkAffineImplicitBackend_h
7#include "vtkCommonCoreModule.h"
35VTK_ABI_NAMESPACE_BEGIN
36template <
typename ValueType>
66#if defined(VTK_AFFINE_BACKEND_INSTANTIATING)
68#define VTK_INSTANTIATE_AFFINE_BACKEND(ValueType) \
69 VTK_ABI_NAMESPACE_BEGIN \
70 template struct VTKCOMMONCORE_EXPORT vtkAffineImplicitBackend<ValueType>; \
73#elif defined(VTK_USE_EXTERN_TEMPLATE)
75#ifndef VTK_AFFINE_BACKEND_TEMPLATE_EXTERN
76#define VTK_AFFINE_BACKEND_TEMPLATE_EXTERN
79#pragma warning(disable : 4910)
81VTK_ABI_NAMESPACE_BEGIN
A utility structure serving as a backend for affine (as a function of the index) implicit arrays.
vtkAffineImplicitBackend(ValueType slope, ValueType intercept)
A non-trivially constructible constructor.
ValueType Intercept
The value of the affine function at index 0.
ValueType Slope
The slope of the affine function on the indices.
ValueType operator()(vtkIdType index) const
The main call method for the backend.
#define vtkExternTemplateMacro(decl)
A macro to declare extern templates for all numerical types.