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
31 #ifndef vtkIntArray_h
32 #define vtkIntArray_h
33 
34 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
35 #include "vtkCommonCoreModule.h" // For export macro
36 #include "vtkDataArray.h"
37 
38 // Fake the superclass for the wrappers.
39 #ifndef __VTK_WRAP__
40 #define vtkDataArray vtkAOSDataArrayTemplate<int>
41 #endif
42 VTK_ABI_NAMESPACE_BEGIN
43 class VTKCOMMONCORE_EXPORT vtkIntArray : public vtkDataArray
44 {
45 public:
46  vtkTypeMacro(vtkIntArray, vtkDataArray);
47 #ifndef __VTK_WRAP__
48 #undef vtkDataArray
49 #endif
50  static vtkIntArray* New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
54  // This macro expands to the set of method declarations that
55  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
56  // by the wrappers.
57 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
59 #endif
60 
65  {
66  return static_cast<vtkIntArray*>(Superclass::FastDownCast(source));
67  }
68 
72  static int GetDataTypeValueMin() { return VTK_INT_MIN; }
73 
77  static int GetDataTypeValueMax() { return VTK_INT_MAX; }
78 
79 protected:
81  ~vtkIntArray() override;
82 
83 private:
85 
86  vtkIntArray(const vtkIntArray&) = delete;
87  void operator=(const vtkIntArray&) = delete;
88 };
89 
90 // Define vtkArrayDownCast implementation:
92 
93 VTK_ABI_NAMESPACE_END
94 #endif
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
a simple class to control print indentation
Definition: vtkIndent.h:38
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
static vtkIntArray * New()
static vtkIntArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
Definition: vtkIntArray.h:64
static int GetDataTypeValueMax()
Get the maximum data value in its native type.
Definition: vtkIntArray.h:77
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 int GetDataTypeValueMin()
Get the minimum data value in its native type.
Definition: vtkIntArray.h:72
#define vtkCreateWrappedArrayInterface(T)
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
vtkArrayDownCast_FastCastMacro(vtkIntArray)
#define VTK_INT_MIN
Definition: vtkType.h:143
#define VTK_INT_MAX
Definition: vtkType.h:144