VTK  9.7.20260813
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
20
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28
29// Fake the superclass for non-Python wrappers.
30// Python can handle the templated superclass; Java and others cannot.
31#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
32#define vtkDataArray vtkAOSDataArrayTemplate<unsigned long>
33#endif
34VTK_ABI_NAMESPACE_BEGIN
35class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkUnsignedLongArray : public vtkDataArray
36{
37public:
39#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
40#undef vtkDataArray
41#endif
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
46 // This macro expands to the set of method declarations that
47 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
48 // by the wrappers.
49#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
50 vtkCreateWrappedArrayInterface(unsigned long);
51#endif
52
60
61protected:
64
65private:
66 typedef vtkAOSDataArrayTemplate<unsigned long> RealSuperclass;
67
69 void operator=(const vtkUnsignedLongArray&) = delete;
70};
71
72// Define vtkArrayDownCast implementation:
74
75VTK_ABI_NAMESPACE_END
76#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 long
static vtkUnsignedLongArray * New()
~vtkUnsignedLongArray() override
static vtkUnsignedLongArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkUnsignedLongArray * ExtendedNew()
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
#define VTK_MARSHALAUTO