vtkConstantUnsignedLongArray.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
13 #ifndef vtkConstantUnsignedLongArray_h
14 #define vtkConstantUnsignedLongArray_h
15 
16 #include "vtkConstantArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDataArray.h"
19 
20 // Fake the superclass for the wrappers.
21 #ifndef __VTK_WRAP__
22 #define vtkDataArray vtkConstantArray<unsigned long>
23 #endif
25 class VTKCOMMONCORE_EXPORT VTK_DEPRECATED_IN_9_6_0("Use vtkConstantType*Array instead") vtkConstantUnsignedLongArray : public vtkDataArray
26 {
27 public:
28  vtkImplicitArrayTypeMacro(vtkConstantUnsignedLongArray, vtkDataArray);
29 #ifndef __VTK_WRAP__
30 #undef vtkDataArray
31 #endif
32 
33  // This macro expands to the set of method declarations that
34  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
35  // by the wrappers.
36 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
37  vtkCreateReadOnlyWrappedArrayInterface(unsigned long);
38 #endif
39 
40  static vtkConstantUnsignedLongArray* New();
41  static vtkConstantUnsignedLongArray* ExtendedNew();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44  // This macro expands to the set of method declarations that
45  // make up the interface of vtkImplicitArray, which is ignored
46  // by the wrappers.
47 
51  static vtkConstantUnsignedLongArray* FastDownCast(vtkAbstractArray* source)
52  {
53  return static_cast<vtkConstantUnsignedLongArray*>(Superclass::FastDownCast(source));
54  }
55 
59  void ConstructBackend(unsigned long value);
60 
61 protected:
62  vtkConstantUnsignedLongArray();
63  ~vtkConstantUnsignedLongArray() override;
64 
65 private:
66  typedef vtkConstantArray<unsigned long> RealSuperclass;
67 
68  vtkConstantUnsignedLongArray(const vtkConstantUnsignedLongArray&) = delete;
69  void operator=(const vtkConstantUnsignedLongArray&) = delete;
70 };
71 
72 // Define vtkArrayDownCast implementation:
73 vtkArrayDownCast_FastCastMacro(vtkConstantUnsignedLongArray);
74 
75 VTK_ABI_NAMESPACE_END
76 #endif
77 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
#define VTK_ABI_NAMESPACE_BEGIN