vtkStdFunctionTypeInt16Array.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
13 #ifndef vtkStdFunctionTypeInt16Array_h
14 #define vtkStdFunctionTypeInt16Array_h
15 
16 #include "vtkStdFunctionArray.h" // Real Superclass
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkDataArray.h"
19 
20 // Fake the superclass for the wrappers.
21 #ifndef __VTK_WRAP__
22 #define vtkDataArray vtkStdFunctionArray<vtkTypeInt16>
23 #endif
26 {
27 public:
28  vtkImplicitArrayTypeMacro(vtkStdFunctionTypeInt16Array, vtkDataArray);
29 #ifndef __VTK_WRAP__
30 #undef vtkDataArray
31 #endif
32 
34  static vtkStdFunctionTypeInt16Array* ExtendedNew();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37  // This macro expands to the set of method declarations that
38  // make up the interface of vtkImplicitArray, which is ignored
39  // by the wrappers.
40 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
41  vtkCreateReadOnlyWrappedArrayInterface(vtkTypeInt16);
42 #endif
43 
48  {
49  return static_cast<vtkStdFunctionTypeInt16Array*>(Superclass::FastDownCast(source));
50  }
51 
55  void ConstructBackend(std::function<vtkTypeInt16(int)> func);
56 
57 protected:
59  ~vtkStdFunctionTypeInt16Array() override;
60 
61 private:
62  typedef vtkStdFunctionArray<vtkTypeInt16> RealSuperclass;
63 
65  void operator=(const vtkStdFunctionTypeInt16Array&) = delete;
66 };
67 
68 // Define vtkArrayDownCast implementation:
70 
72 #endif
73 // VTK-HeaderTest-Exclude: TYPEMACRO
vtkArrayDownCast_FastCastMacro(vtkStdFunctionTypeInt16Array)
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
static vtkStdFunctionTypeInt16Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkObject * New()
void operator=(const vtkObjectBase &)
std function implicit array of vtkTypeInt16.