vtkStdFunctionTypeFloat64Array.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 vtkStdFunctionTypeFloat64Array_h
14 #define vtkStdFunctionTypeFloat64Array_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<vtkTypeFloat64>
23 #endif
26 {
27 public:
28  vtkImplicitArrayTypeMacro(vtkStdFunctionTypeFloat64Array, vtkDataArray);
29 #ifndef __VTK_WRAP__
30 #undef vtkDataArray
31 #endif
32 
34  static vtkStdFunctionTypeFloat64Array* 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(vtkTypeFloat64);
42 #endif
43 
48  {
49  return static_cast<vtkStdFunctionTypeFloat64Array*>(Superclass::FastDownCast(source));
50  }
51 
55  void ConstructBackend(std::function<vtkTypeFloat64(int)> func);
56 
57 protected:
60 
61 private:
62  typedef vtkStdFunctionArray<vtkTypeFloat64> RealSuperclass;
63 
65  void operator=(const vtkStdFunctionTypeFloat64Array&) = delete;
66 };
67 
68 // Define vtkArrayDownCast implementation:
70 
72 #endif
73 // VTK-HeaderTest-Exclude: TYPEMACRO
#define VTKCOMMONCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkStdFunctionTypeFloat64Array * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
vtkArrayDownCast_FastCastMacro(vtkStdFunctionTypeFloat64Array)
#define VTK_ABI_NAMESPACE_BEGIN
std function implicit array of vtkTypeFloat64.
static vtkObject * New()
void operator=(const vtkObjectBase &)