VTK  9.3.20240422
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
47#ifndef vtkCharArray_h
48#define vtkCharArray_h
49
50#include "vtkAOSDataArrayTemplate.h" // Real Superclass
51#include "vtkCommonCoreModule.h" // For export macro
52#include "vtkDataArray.h"
53
54// Fake the superclass for the wrappers.
55#ifndef __VTK_WRAP__
56#define vtkDataArray vtkAOSDataArrayTemplate<char>
57#endif
58VTK_ABI_NAMESPACE_BEGIN
59class VTKCOMMONCORE_EXPORT vtkCharArray : public vtkDataArray
60{
61public:
62 vtkTypeMacro(vtkCharArray, vtkDataArray);
63#ifndef __VTK_WRAP__
64#undef vtkDataArray
65#endif
66 static vtkCharArray* New();
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
70 // This macro expands to the set of method declarations that
71 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
72 // by the wrappers.
73#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
75#endif
76
81 {
82 return static_cast<vtkCharArray*>(Superclass::FastDownCast(source));
83 }
84
88 static char GetDataTypeValueMin() { return VTK_CHAR_MIN; }
89
93 static char GetDataTypeValueMax() { return VTK_CHAR_MAX; }
94
95protected:
97 ~vtkCharArray() override;
98
99private:
101
102 vtkCharArray(const vtkCharArray&) = delete;
103 void operator=(const vtkCharArray&) = delete;
104};
105
106// Define vtkArrayDownCast implementation:
108
109VTK_ABI_NAMESPACE_END
110#endif
Array-Of-Structs implementation of vtkGenericDataArray.
Abstract superclass for all arrays.
dynamic, self-adjusting array of char
static vtkCharArray * New()
static char GetDataTypeValueMin()
Get the minimum data value in its native type.
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 char GetDataTypeValueMax()
Get the maximum data value in its native type.
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 *)
#define VTK_CHAR_MIN
Definition vtkType.h:132
#define VTK_CHAR_MAX
Definition vtkType.h:133