VTK: Common/Core/vtkUnsignedLongLongArray.h Source File

| VTK 9.3.1

vtkUnsignedLongLongArray.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
19 #ifndef vtkUnsignedLongLongArray_h
20 #define vtkUnsignedLongLongArray_h
21
22 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
23 #include "vtkCommonCoreModule.h" // For export macro
24 #include "vtkDataArray.h"
25
26 // Fake the superclass for the wrappers.
27 #ifndef __VTK_WRAP__
28 #define vtkDataArray vtkAOSDataArrayTemplate<unsigned long long>
29 #endif
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCOMMONCORE_EXPORT vtkUnsignedLongLongArray : public vtkDataArray
32 {
33 public:
34 vtkTypeMacro(vtkUnsignedLongLongArray, vtkDataArray);
35 #ifndef __VTK_WRAP__
36 #undef vtkDataArray
37 #endif
38 static vtkUnsignedLongLongArray* New();
39 static vtkUnsignedLongLongArray* ExtendedNew();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
42 // This macro expands to the set of method declarations that
43 // make up the interface of vtkAOSDataArrayTemplate, which is ignored
44 // by the wrappers.
45 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
46 vtkCreateWrappedArrayInterface(unsigned long long);
47 #endif
48
52 static vtkUnsignedLongLongArray* FastDownCast(vtkAbstractArray* source)
53 {
54 return static_cast<vtkUnsignedLongLongArray*>(Superclass::FastDownCast(source));
55 }
56
60 static unsigned long long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_LONG_MIN; }
61
65 static unsigned long long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_LONG_MAX; }
66
67 protected:
68 vtkUnsignedLongLongArray();
69 ~vtkUnsignedLongLongArray() override;
70
71 private:
72 typedef vtkAOSDataArrayTemplate<unsigned long long> RealSuperclass;
73
74 vtkUnsignedLongLongArray(const vtkUnsignedLongLongArray&) = delete;
75 void operator=(const vtkUnsignedLongLongArray&) = delete;
76 };
77
78 // Define vtkArrayDownCast implementation:
79 vtkArrayDownCast_FastCastMacro(vtkUnsignedLongLongArray);
80
81 VTK_ABI_NAMESPACE_END
82 #endif
vtkAOSDataArrayTemplate< unsigned long long >
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:76
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkUnsignedLongLongArray
dynamic, self-adjusting array of unsigned long long
Definition: vtkUnsignedLongLongArray.h:32
vtkUnsignedLongLongArray::GetDataTypeValueMax
static unsigned long long GetDataTypeValueMax()
Get the maximum data value in its native type.
Definition: vtkUnsignedLongLongArray.h:65
vtkUnsignedLongLongArray::GetDataTypeValueMin
static unsigned long long GetDataTypeValueMin()
Get the minimum data value in its native type.
Definition: vtkUnsignedLongLongArray.h:60
vtkUnsignedLongLongArray::vtkUnsignedLongLongArray
vtkUnsignedLongLongArray()
vtkUnsignedLongLongArray::New
static vtkUnsignedLongLongArray * New()
vtkUnsignedLongLongArray::~vtkUnsignedLongLongArray
~vtkUnsignedLongLongArray() override
vtkUnsignedLongLongArray::FastDownCast
static vtkUnsignedLongLongArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
Definition: vtkUnsignedLongLongArray.h:52
vtkUnsignedLongLongArray::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnsignedLongLongArray::ExtendedNew
static vtkUnsignedLongLongArray * ExtendedNew()
vtkAOSDataArrayTemplate.h
vtkCreateWrappedArrayInterface
#define vtkCreateWrappedArrayInterface(T)
Definition: vtkAOSDataArrayTemplate.h:298
source
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
Definition: vtkBoostGraphAdapter.h:964
vtkDataArray.h
VTK_UNSIGNED_LONG_LONG_MIN
#define VTK_UNSIGNED_LONG_LONG_MIN
Definition: vtkType.h:157
VTK_UNSIGNED_LONG_LONG_MAX
#define VTK_UNSIGNED_LONG_LONG_MAX
Definition: vtkType.h:158
vtkArrayDownCast_FastCastMacro
vtkArrayDownCast_FastCastMacro(vtkUnsignedLongLongArray)