VTK  9.5.20251103
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
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
57// Fake the superclass for the wrappers.
58#ifndef __VTK_WRAP__
59#define vtkDataArray vtkAOSDataArrayTemplate<char>
60#endif
61VTK_ABI_NAMESPACE_BEGIN
62class VTKCOMMONCORE_EXPORT vtkCharArray : public vtkDataArray
63{
64public:
65 vtkTypeMacro(vtkCharArray, vtkDataArray);
66#ifndef __VTK_WRAP__
67#undef vtkDataArray
68#endif
69 static vtkCharArray* New();
71 void PrintSelf(ostream& os, vtkIndent indent) override;
72
73 // This macro expands to the set of method declarations that
74 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
75 // by the wrappers.
76#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
78#endif
79
84 {
85 return static_cast<vtkCharArray*>(Superclass::FastDownCast(source));
86 }
87
88protected:
90 ~vtkCharArray() override;
91
92private:
94
95 vtkCharArray(const vtkCharArray&) = delete;
96 void operator=(const vtkCharArray&) = delete;
97};
98
99// Define vtkArrayDownCast implementation:
101
102VTK_ABI_NAMESPACE_END
103#endif
Array-Of-Structs implementation of vtkGenericDataArray.
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()
abstract superclass for arrays of numeric data
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 *)