26 #ifndef vtkArrayIteratorTemplate_h
27 #define vtkArrayIteratorTemplate_h
29 #include "vtkCommonCoreModule.h"
68 {
return this->Pointer[id]; }
77 this->Pointer[id] =
value;
93 int GetNumberOfComponents();
103 int GetDataTypeSize();
112 ~vtkArrayIteratorTemplate() VTK_OVERRIDE;
116 vtkArrayIteratorTemplate(const vtkArrayIteratorTemplate&) VTK_DELETE_FUNCTION;
117 void operator=(const vtkArrayIteratorTemplate&) VTK_DELETE_FUNCTION;
120 vtkAbstractArray* Array;
123 #ifdef VTK_USE_EXTERN_TEMPLATE
124 #ifndef vtkArrayIteratorTemplateInstantiate_cxx
126 #pragma warning (push)
129 #pragma warning (disable: 4910) // extern and dllexport incompatible
132 extern template class VTKCOMMONCORE_EXPORT vtkArrayIteratorTemplate)
133 extern template class VTKCOMMONCORE_EXPORT
135 extern template class VTKCOMMONCORE_EXPORT
137 extern template class VTKCOMMONCORE_EXPORT
140 #pragma warning (pop)
143 #endif // VTK_USE_EXTERN_TEMPLATE
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
T ValueType
This is the data type for the value.
virtual int GetDataType()=0
Get the data type from the underlying array.
Abstract superclass for all arrays.
vtkAbstractArray * GetArray()
Get the array.
Implementation template for a array iterator.
virtual void Initialize(vtkAbstractArray *array)=0
Set the array this iterator will iterate over.
a simple class to control print indentation
void SetValue(vtkIdType id, T value)
Sets the value at the index.
T & GetValue(vtkIdType id)
Must be called only after Initialize.
Abstract superclass to iterate over elements in an vtkAbstractArray.
#define vtkInstantiateTemplateMacro(decl)
A macro to instantiate a template over all numerical types.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...