vtkCompositeLongArray.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 vtkCompositeLongArray_h
14 #define vtkCompositeLongArray_h
15 
16 #include "vtkCompositeArray.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 vtkCompositeArray<long>
23 #endif
26 
28 {
29 public:
30  vtkImplicitArrayTypeMacro(vtkCompositeLongArray, vtkDataArray);
31 #ifndef __VTK_WRAP__
32 #undef vtkDataArray
33 #endif
34 
35  static vtkCompositeLongArray* New();
36  static vtkCompositeLongArray* ExtendedNew();
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 vtkImplicitArray, which is ignored
41  // by the wrappers.
42 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
43  vtkCreateReadOnlyWrappedArrayInterface(long);
44 #endif
45 
50  {
51  return static_cast<vtkCompositeLongArray*>(Superclass::FastDownCast(source));
52  }
53 
57  void ConstructBackend(vtkDataArrayCollection* arrays);
58 
59 protected:
61  ~vtkCompositeLongArray() override;
62 
63 private:
64  typedef vtkCompositeArray<long> RealSuperclass;
65 
67  void operator=(const vtkCompositeLongArray&) = delete;
68 };
69 
70 // Define vtkArrayDownCast implementation:
72 
74 #endif
75 // VTK-HeaderTest-Exclude: TYPEMACRO
vtkArrayDownCast_FastCastMacro(vtkCompositeLongArray)
#define VTKCOMMONCORE_EXPORT
#define VTK_ABI_NAMESPACE_END
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTK_ABI_NAMESPACE_BEGIN
static vtkCompositeLongArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
static vtkObject * New()
composite implicit array of long.
void operator=(const vtkObjectBase &)