VTK
9.4.20241117
|
A utility structure serving as a backend for constant implicit arrays. More...
#include <vtkConstantImplicitBackend.h>
Public Member Functions | |
vtkConstantImplicitBackend (ValueType val) | |
A non-trivially contructible constructor. | |
ValueType | operator() (vtkIdType vtkNotUsed(index)) const |
The main call method for the backend. | |
Public Attributes | |
const ValueType | Value |
The constant value stored in the backend. | |
A utility structure serving as a backend for constant implicit arrays.
This structure can be classified as a closure and can be called using syntax similar to a function.
At construction it takes one parameter which is the constant value that it returns from its main function call regardless of index.
An example of potential usage in a vtkImplicitArray
Definition at line 35 of file vtkConstantImplicitBackend.h.
|
inline |
A non-trivially contructible constructor.
val | the constant value to return for all indices |
Definition at line 42 of file vtkConstantImplicitBackend.h.
|
inline |
The main call method for the backend.
Definition at line 52 of file vtkConstantImplicitBackend.h.
const ValueType vtkConstantImplicitBackend< ValueType >::Value |
The constant value stored in the backend.
Definition at line 57 of file vtkConstantImplicitBackend.h.