VTK  9.3.20240420
vtkIntArray.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
131#ifndef vtkIntArray_h
132#define vtkIntArray_h
133
134#include "vtkAOSDataArrayTemplate.h" // Real Superclass
135#include "vtkCommonCoreModule.h" // For export macro
136#include "vtkDataArray.h"
137
138// Fake the superclass for the wrappers.
139#ifndef __VTK_WRAP__
140#define vtkDataArray vtkAOSDataArrayTemplate<int>
141#endif
142VTK_ABI_NAMESPACE_BEGIN
143class VTKCOMMONCORE_EXPORT vtkIntArray : public vtkDataArray
144{
145public:
146 vtkTypeMacro(vtkIntArray, vtkDataArray);
147#ifndef __VTK_WRAP__
148#undef vtkDataArray
149#endif
150 static vtkIntArray* New();
152 void PrintSelf(ostream& os, vtkIndent indent) override;
153
154 // This macro expands to the set of method declarations that
155 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
156 // by the wrappers.
157#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
159#endif
160
165 {
166 return static_cast<vtkIntArray*>(Superclass::FastDownCast(source));
167 }
168
172 static int GetDataTypeValueMin() { return VTK_INT_MIN; }
173
177 static int GetDataTypeValueMax() { return VTK_INT_MAX; }
178
179protected:
181 ~vtkIntArray() override;
182
183private:
185
186 vtkIntArray(const vtkIntArray&) = delete;
187 void operator=(const vtkIntArray&) = delete;
188};
189
190// Define vtkArrayDownCast implementation:
192
193VTK_ABI_NAMESPACE_END
194#endif
Array-Of-Structs implementation of vtkGenericDataArray.
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of int
static int GetDataTypeValueMax()
Get the maximum data value in its native type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkIntArray() override
static vtkIntArray * ExtendedNew()
static vtkIntArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static int GetDataTypeValueMin()
Get the minimum data value in its native type.
static vtkIntArray * New()
#define vtkCreateWrappedArrayInterface(T)
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTK_INT_MIN
Definition vtkType.h:143
#define VTK_INT_MAX
Definition vtkType.h:144