VTK  9.7.20260818
vtkCharArray.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
49
50#ifndef vtkCharArray_h
51#define vtkCharArray_h
52
53#include "vtkAOSDataArrayTemplate.h" // Real Superclass
54#include "vtkCommonCoreModule.h" // For export macro
55#include "vtkDataArray.h"
56#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
57
58// Fake the superclass for non-Python wrappers.
59// Python can handle the templated superclass; Java and others cannot.
60#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
61#define vtkDataArray vtkAOSDataArrayTemplate<char>
62#endif
63VTK_ABI_NAMESPACE_BEGIN
64class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkCharArray : public vtkDataArray
65{
66public:
67 vtkTypeMacro(vtkCharArray, vtkDataArray);
68#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
69#undef vtkDataArray
70#endif
71 static vtkCharArray* New();
73 void PrintSelf(ostream& os, vtkIndent indent) override;
74
75 // This macro expands to the set of method declarations that
76 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
77 // by the wrappers.
78#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
80#endif
81
89
90protected:
92 ~vtkCharArray() override;
93
94private:
95 typedef vtkAOSDataArrayTemplate<char> RealSuperclass;
96
97 vtkCharArray(const vtkCharArray&) = delete;
98 void operator=(const vtkCharArray&) = delete;
99};
100
101// Define vtkArrayDownCast implementation:
103
104VTK_ABI_NAMESPACE_END
105#endif
Abstract superclass for all arrays.
dynamic, self-adjusting array of char
static vtkCharArray * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
~vtkCharArray() override
static vtkCharArray * ExtendedNew()
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
#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