VTK  9.3.0
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
22#ifndef vtkIntArray_h
23#define vtkIntArray_h
24
25#include "vtkAOSDataArrayTemplate.h" // Real Superclass
26#include "vtkCommonCoreModule.h" // For export macro
27#include "vtkDataArray.h"
28
29// Fake the superclass for the wrappers.
30#ifndef __VTK_WRAP__
31#define vtkDataArray vtkAOSDataArrayTemplate<int>
32#endif
33VTK_ABI_NAMESPACE_BEGIN
34class VTKCOMMONCORE_EXPORT vtkIntArray : public vtkDataArray
35{
36public:
37 vtkTypeMacro(vtkIntArray, vtkDataArray);
38#ifndef __VTK_WRAP__
39#undef vtkDataArray
40#endif
41 static vtkIntArray* New();
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
45 // This macro expands to the set of method declarations that
46 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
47 // by the wrappers.
48#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
50#endif
51
56 {
57 return static_cast<vtkIntArray*>(Superclass::FastDownCast(source));
58 }
59
63 static int GetDataTypeValueMin() { return VTK_INT_MIN; }
64
68 static int GetDataTypeValueMax() { return VTK_INT_MAX; }
69
70protected:
72 ~vtkIntArray() override;
73
74private:
76
77 vtkIntArray(const vtkIntArray&) = delete;
78 void operator=(const vtkIntArray&) = delete;
79};
80
81// Define vtkArrayDownCast implementation:
83
84VTK_ABI_NAMESPACE_END
85#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:29
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
static int GetDataTypeValueMax()
Get the maximum data value in its native type.
Definition vtkIntArray.h:68
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.
Definition vtkIntArray.h:55
static int GetDataTypeValueMin()
Get the minimum data value in its native type.
Definition vtkIntArray.h:63
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