vtkConstantUnsignedShortArray.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 vtkConstantUnsignedShortArray_h
14 #define vtkConstantUnsignedShortArray_h
15 
16 #include "vtkConstantArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDeprecation.h" // For VTK_DEPRECATION_9_6_0
19 #include "vtkDataArray.h"
20 
21 // Fake the superclass for non-Python wrappers.
22 // Python can handle the templated superclass; Java and others cannot.
23 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
24 #define vtkDataArray vtkConstantArray<unsigned short>
25 #endif
27 class VTK_DEPRECATED_IN_9_6_0("Use vtkConstantTypeUnsignedShortArray instead") VTKCOMMONCORE_EXPORT vtkConstantUnsignedShortArray : public vtkDataArray
28 {
29 public:
30  vtkImplicitArrayTypeMacro(vtkConstantUnsignedShortArray, vtkDataArray);
31 #if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
32 #undef vtkDataArray
33 #endif
34 
35  // This macro expands to the set of method declarations that
36  // make up the interface of vtkConstantArray, which is ignored
37  // by the wrappers.
38 #if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
39  vtkCreateConstantWrappedArrayInterface(unsigned short);
40 #endif
41 
43  static vtkConstantUnsignedShortArray* ExtendedNew();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  {
51  return static_cast<vtkConstantUnsignedShortArray*>(Superclass::FastDownCast(source));
52  }
53 
54 protected:
57 
58 private:
59  typedef vtkConstantArray<unsigned short> RealSuperclass;
60 
62  void operator=(const vtkConstantUnsignedShortArray&) = delete;
63 };
64 
65 // Define vtkArrayDownCast implementation:
67 
69 #endif
70 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
source
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
constant implicit array of unsigned short.
VTK_ABI_NAMESPACE_BEGIN class VTK_DEPRECATED_IN_9_6_0("Use vtkConstantTypeUnsignedShortArray instead") VTKCOMMONCORE_EXPORT vtkConstantUnsignedShortArray vtkArrayDownCast_FastCastMacro(vtkConstantUnsignedShortArray)
static vtkObject * New()
void operator=(const vtkObjectBase &)