VTK  9.7.20260828
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22
23// Fake the superclass for non-Python wrappers.
24// Python can handle the templated superclass; Java and others cannot.
25#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
26#define vtkDataArray vtkAOSDataArrayTemplate<signed char>
27#endif
28VTK_ABI_NAMESPACE_BEGIN
29class VTKCOMMONCORE_EXPORT VTK_MARSHALAUTO vtkSignedCharArray : public vtkDataArray
30{
31public:
33#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__) || defined(__VTK_WRAP_HIERARCHY__)
34#undef vtkDataArray
35#endif
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
40 // This macro expands to the set of method declarations that
41 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
42 // by the wrappers.
43#if (defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)) && !defined(__VTK_WRAP_PYTHON__)
45#endif
46
54
55protected:
58
59private:
60 typedef vtkAOSDataArrayTemplate<signed char> RealSuperclass;
61
63 void operator=(const vtkSignedCharArray&) = delete;
64};
65
66// Define vtkArrayDownCast implementation:
68
69VTK_ABI_NAMESPACE_END
70#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
#define VTK_MARSHALAUTO