vtkStridedTypeUInt64Array.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 vtkStridedTypeUInt64Array_h
14 #define vtkStridedTypeUInt64Array_h
15 
16 #include "vtkStridedArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDataArray.h"
19 
20 // Fake the superclass for non-Python wrappers.
21 // Python can handle the templated superclass; Java and others cannot.
22 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
23 #define vtkDataArray vtkStridedArray<vtkTypeUInt64>
24 #endif
27 {
28 public:
29  vtkImplicitArrayTypeMacro(vtkStridedTypeUInt64Array, vtkDataArray);
30 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
31 #undef vtkDataArray
32 #endif
33 
35  static vtkStridedTypeUInt64Array* ExtendedNew();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38  // This macro expands to the set of method declarations that
39  // make up the interface of vtkStridedArray, which is ignored
40  // by the wrappers.
41 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
42  vtkCreateStridedWrappedArrayInterface(vtkTypeUInt64);
43 #endif
44 
49  {
50  return static_cast<vtkStridedTypeUInt64Array*>(Superclass::FastDownCast(source));
51  }
52 
53 protected:
55  ~vtkStridedTypeUInt64Array() override;
56 
57 private:
58  typedef vtkStridedArray<vtkTypeUInt64> RealSuperclass;
59 
61  void operator=(const vtkStridedTypeUInt64Array&) = delete;
62 };
63 
64 // Define vtkArrayDownCast implementation:
66 
68 #endif
69 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkArrayDownCast_FastCastMacro(vtkStridedTypeUInt64Array)
#define VTK_ABI_NAMESPACE_BEGIN
strided implicit array of vtkTypeUInt64.
static vtkStridedTypeUInt64Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkObject * New()
void operator=(const vtkObjectBase &)