VTK  9.7.1
vtkUnsignedIntArray.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
19 #ifndef vtkUnsignedIntArray_h
20 #define vtkUnsignedIntArray_h
21 
22 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
23 #include "vtkCommonCoreModule.h" // For export macro
24 #include "vtkDataArray.h"
25 
26 // Fake the superclass for non-Python wrappers.
27 // Python can handle the templated superclass; Java and others cannot.
28 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
29 #define vtkDataArray vtkAOSDataArrayTemplate<unsigned int>
30 #endif
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKCOMMONCORE_EXPORT vtkUnsignedIntArray : public vtkDataArray
33 {
34 public:
36 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
37 #undef vtkDataArray
38 #endif
39  static vtkUnsignedIntArray* New();
40  static vtkUnsignedIntArray* ExtendedNew();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43  // This macro expands to the set of method declarations that
44  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
45  // by the wrappers.
46 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
47  vtkCreateWrappedArrayInterface(unsigned int);
48 #endif
49 
54  {
55  return static_cast<vtkUnsignedIntArray*>(Superclass::FastDownCast(source));
56  }
57 
58 protected:
60  ~vtkUnsignedIntArray() override;
61 
62 private:
63  typedef vtkAOSDataArrayTemplate<unsigned int> RealSuperclass;
64 
66  void operator=(const vtkUnsignedIntArray&) = delete;
67 };
68 
69 // Define vtkArrayDownCast implementation:
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
dynamic, self-adjusting array of unsigned int
static vtkUnsignedIntArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
Abstract superclass for all arrays.
#define vtkCreateWrappedArrayInterface(T)
vtkArrayDownCast_FastCastMacro(vtkUnsignedIntArray)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...