VTK  9.7.1
vtkUnsignedLongArray.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
21 #ifndef vtkUnsignedLongArray_h
22 #define vtkUnsignedLongArray_h
23 
24 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
25 #include "vtkCommonCoreModule.h" // For export macro
26 #include "vtkDataArray.h"
27 
28 // Fake the superclass for non-Python wrappers.
29 // Python can handle the templated superclass; Java and others cannot.
30 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
31 #define vtkDataArray vtkAOSDataArrayTemplate<unsigned long>
32 #endif
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKCOMMONCORE_EXPORT vtkUnsignedLongArray : public vtkDataArray
35 {
36 public:
38 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
39 #undef vtkDataArray
40 #endif
41  static vtkUnsignedLongArray* New();
42  static vtkUnsignedLongArray* ExtendedNew();
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__)) && !defined(__VTK_WRAP_PYTHON__)
49  vtkCreateWrappedArrayInterface(unsigned long);
50 #endif
51 
56  {
57  return static_cast<vtkUnsignedLongArray*>(Superclass::FastDownCast(source));
58  }
59 
60 protected:
62  ~vtkUnsignedLongArray() override;
63 
64 private:
65  typedef vtkAOSDataArrayTemplate<unsigned long> RealSuperclass;
66 
68  void operator=(const vtkUnsignedLongArray&) = delete;
69 };
70 
71 // Define vtkArrayDownCast implementation:
73 
74 VTK_ABI_NAMESPACE_END
75 #endif
vtkArrayDownCast_FastCastMacro(vtkUnsignedLongArray)
Abstract superclass for all arrays.
#define vtkCreateWrappedArrayInterface(T)
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
static vtkUnsignedLongArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
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 *)
dynamic, self-adjusting array of unsigned long
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...