VTK  9.6.20260314
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
14
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 non-Python wrappers.
23// Python can handle the templated superclass; Java and others cannot.
24#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
25#define vtkDataArray vtkAOSDataArrayTemplate<signed char>
26#endif
27VTK_ABI_NAMESPACE_BEGIN
28class VTKCOMMONCORE_EXPORT vtkSignedCharArray : public vtkDataArray
29{
30public:
32#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)
33#undef vtkDataArray
34#endif
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
39 // This macro expands to the set of method declarations that
40 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
41 // by the wrappers.
42#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
44#endif
45
53
54protected:
57
58private:
59 typedef vtkAOSDataArrayTemplate<signed char> RealSuperclass;
60
62 void operator=(const vtkSignedCharArray&) = delete;
63};
64
65// Define vtkArrayDownCast implementation:
67
68VTK_ABI_NAMESPACE_END
69#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: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 vtkSignedCharArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
~vtkSignedCharArray() override
#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