VTK  9.6.20260314
vtkUnsignedShortArray.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
18
19#ifndef vtkUnsignedShortArray_h
20#define vtkUnsignedShortArray_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__)
29#define vtkDataArray vtkAOSDataArrayTemplate<unsigned short>
30#endif
31VTK_ABI_NAMESPACE_BEGIN
32class VTKCOMMONCORE_EXPORT vtkUnsignedShortArray : public vtkDataArray
33{
34public:
36#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
37#undef vtkDataArray
38#endif
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 short);
48#endif
49
57
58protected:
61
62private:
63 typedef vtkAOSDataArrayTemplate<unsigned short> RealSuperclass;
64
66 void operator=(const vtkUnsignedShortArray&) = delete;
67};
68
69// Define vtkArrayDownCast implementation:
71
72VTK_ABI_NAMESPACE_END
73#endif
Abstract superclass for all arrays.
static vtkDataArray * FastDownCast(vtkAbstractArray *source)
Perform a fast, safe cast from a vtkAbstractArray to a vtkDataArray.
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of unsigned short
static vtkUnsignedShortArray * New()
~vtkUnsignedShortArray() override
static vtkUnsignedShortArray * ExtendedNew()
static vtkUnsignedShortArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define vtkCreateWrappedArrayInterface(T)
#define vtkArrayDownCast_FastCastMacro(ArrayT)
This macro is used to tell vtkArrayDownCast to use FastDownCast instead of SafeDownCast.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define vtkDataArray