 |
VTK
9.0.1
|
Go to the documentation of this file.
26 #ifndef vtkArrayIteratorTemplate_h
27 #define vtkArrayIteratorTemplate_h
30 #include "vtkCommonCoreModule.h"
119 #ifdef VTK_USE_EXTERN_TEMPLATE
120 #ifndef vtkArrayIteratorTemplateInstantiate_cxx
122 #pragma warning(push)
125 #pragma warning(disable : 4910) // extern and dllexport incompatible
135 #endif // VTK_USE_EXTERN_TEMPLATE
int GetDataType() const override
Get the data type from the underlying array.
vtkIdType GetNumberOfValues()
Must be called only after Initialize.
vtkIdType GetNumberOfTuples()
Must be called only after Initialize.
T * GetTuple(vtkIdType id)
Must be called only after Initialize.
vtkArrayIteratorTemplate()
static vtkArrayIteratorTemplate< T > * New()
Implementation template for a array iterator.
vtkAbstractArray * GetArray()
Get the array.
void Initialize(vtkAbstractArray *array) override
Set the array this iterator will iterate over.
vtkTemplateTypeMacro(vtkArrayIteratorTemplate< T >, vtkArrayIterator)
~vtkArrayIteratorTemplate() override
a simple class to control print indentation
void SetValue(vtkIdType id, T value)
Sets the value at the index.
T ValueType
This is the data type for the value.
int GetDataTypeSize() const
Get the data type size from the underlying array.
Abstract superclass for all arrays.
#define vtkInstantiateTemplateMacro(decl)
A macro to instantiate a template over all numerical types.
T & GetValue(vtkIdType id)
Must be called only after Initialize.
Abstract superclass to iterate over elements in an vtkAbstractArray.
int GetNumberOfComponents()
Must be called only after Initialize.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.