VTK  9.7.20260813
vtkLongArray.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
19
20#ifndef vtkLongArray_h
21#define vtkLongArray_h
22
23#include "vtkAOSDataArrayTemplate.h" // Real Superclass
24#include "vtkCommonCoreModule.h" // For export macro
25#include "vtkDataArray.h"
26#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27
28// Fake the superclass for non-Python wrappers.
29// Python can handle the templated superclass; Java and others cannot.
30#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
31#define vtkDataArray vtkAOSDataArrayTemplate<long>
32#endif
33VTK_ABI_NAMESPACE_BEGIN
34class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkLongArray : public vtkDataArray
35{
36public:
37 vtkTypeMacro(vtkLongArray, vtkDataArray);
38#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
39#undef vtkDataArray
40#endif
41 static vtkLongArray* New();
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
45 // This macro expands to the set of method declarations that
46 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
47 // by the wrappers.
48#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
50#endif
51
59
60protected:
62 ~vtkLongArray() override;
63
64private:
65 typedef vtkAOSDataArrayTemplate<long> RealSuperclass;
66
67 vtkLongArray(const vtkLongArray&) = delete;
68 void operator=(const vtkLongArray&) = delete;
69};
70
71// Define vtkArrayDownCast implementation:
73
74VTK_ABI_NAMESPACE_END
75#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 long
static vtkLongArray * ExtendedNew()
static vtkLongArray * 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.
~vtkLongArray() override
static vtkLongArray * New()
#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