VTK  9.4.20250207
vtkSignedCharArray.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
15#ifndef vtkSignedCharArray_h
16#define vtkSignedCharArray_h
17
18#include "vtkAOSDataArrayTemplate.h" // Real Superclass
19#include "vtkCommonCoreModule.h" // For export macro
20#include "vtkDataArray.h"
21
22// Fake the superclass for the wrappers.
23#ifndef __VTK_WRAP__
24#define vtkDataArray vtkAOSDataArrayTemplate<signed char>
25#endif
26VTK_ABI_NAMESPACE_BEGIN
27class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray
28{
29public:
31#ifndef __VTK_WRAP__
32#undef vtkDataArray
33#endif
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
38 // This macro expands to the set of method declarations that
39 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
40 // by the wrappers.
41#if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
43#endif
44
49 {
50 return static_cast<vtkSignedCharArray*>(Superclass::FastDownCast(source));
51 }
52
56 static signed char GetDataTypeValueMin() { return VTK_SIGNED_CHAR_MIN; }
57
61 static signed char GetDataTypeValueMax() { return VTK_SIGNED_CHAR_MAX; }
62
63protected:
66
67private:
69
71 void operator=(const vtkSignedCharArray&) = delete;
72};
73
74// Define vtkArrayDownCast implementation:
76
77VTK_ABI_NAMESPACE_END
78#endif
Array-Of-Structs implementation of vtkGenericDataArray.
Abstract superclass for all arrays.
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of signed char
static vtkSignedCharArray * ExtendedNew()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSignedCharArray * New()
static signed char GetDataTypeValueMin()
Get the minimum data value in its native type.
static vtkSignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
~vtkSignedCharArray() override
static signed char GetDataTypeValueMax()
Get the maximum data value in its native type.
#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_SIGNED_CHAR_MAX
Definition vtkType.h:136
#define VTK_SIGNED_CHAR_MIN
Definition vtkType.h:135