vtkTypeUInt64Array.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
3 // .NAME vtkTypeUInt64Array - dynamic, self-adjusting array of vtkTypeUInt64
4 // .SECTION Description
5 // vtkTypeUInt64Array is an array of values of type vtkTypeUInt64. It
6 // provides methods for insertion and retrieval of values and will
7 // automatically resize itself to hold new data.
8 //
9 // This array should be preferred for data of type UInt64 as this
10 // array will use the correct underlying datatype based on the desired number of bits
11 // and the current platform. The superclass of this type will change depending on the
12 // machine and compiler in use so that the data contained always uses the proper type.
13 
14 #ifndef vtkTypeUInt64Array_h
15 #define vtkTypeUInt64Array_h
16 
17 #include "vtkCommonCoreModule.h" // For export macro
18 #include "vtkType.h" // For native type selections.
19 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
20 
21 #if VTK_TYPE_UINT64 == VTK_UNSIGNED_LONG
22 # include "vtkUnsignedLongArray.h"
23 # define vtkTypeArrayBase vtkUnsignedLongArray
24 #elif VTK_TYPE_UINT64 == VTK_UNSIGNED_LONG_LONG
26 # define vtkTypeArrayBase vtkUnsignedLongLongArray
27 #endif
28 
29 
31 
33 {
34 public:
35  static vtkTypeUInt64Array* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  // Description:
40  // A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
42  {
43  return static_cast<vtkTypeUInt64Array*>(Superclass::FastDownCast(source));
44  }
45 
46 protected:
48  ~vtkTypeUInt64Array() override;
49 
50 private:
51  vtkTypeUInt64Array(const vtkTypeUInt64Array&) = delete;
52  void operator=(const vtkTypeUInt64Array&) = delete;
53 };
54 
55 // Define vtkArrayDownCast implementation:
57 
59 
60 #undef vtkTypeArrayBase
61 
62 #endif
63 /* VTK-HeaderTest-Exclude: INCLUDES */
vtkArrayDownCast_FastCastMacro(vtkTypeUInt64Array)
#define VTKCOMMONCORE_EXPORT
static vtkTypeUInt64Array * FastDownCast(vtkAbstractArray *source)
#define VTK_ABI_NAMESPACE_BEGIN
#define vtkTypeArrayBase