VTK  9.6.1
vtkIntArray.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
21
22#ifndef vtkIntArray_h
23#define vtkIntArray_h
24
25#include "vtkAOSDataArrayTemplate.h" // Real Superclass
26#include "vtkCommonCoreModule.h" // For export macro
27#include "vtkDataArray.h"
28
29// Fake the superclass for the wrappers.
30#ifndef __VTK_WRAP__
31#define vtkDataArray vtkAOSDataArrayTemplate<int>
32#endif
33VTK_ABI_NAMESPACE_BEGIN
34class VTKCOMMONCORE_EXPORT vtkIntArray : public vtkDataArray
35{
36public:
37 vtkTypeMacro(vtkIntArray, vtkDataArray);
38#ifndef __VTK_WRAP__
39#undef vtkDataArray
40#endif
41 static vtkIntArray* 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__)
50#endif
51
59
60protected:
62 ~vtkIntArray() override;
63
64private:
65 typedef vtkAOSDataArrayTemplate<int> RealSuperclass;
66
67 vtkIntArray(const vtkIntArray&) = delete;
68 void operator=(const vtkIntArray&) = 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:29
dynamic, self-adjusting array of int
Definition vtkIntArray.h:35
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkIntArray() override
static vtkIntArray * ExtendedNew()
static vtkIntArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
Definition vtkIntArray.h:55
static vtkIntArray * 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
Definition vtkIntArray.h:31