VTK  9.3.1
vtkUnsignedLongArray.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
21 #ifndef vtkUnsignedLongArray_h
22 #define vtkUnsignedLongArray_h
23 
24 #include "vtkAOSDataArrayTemplate.h" // Real Superclass
25 #include "vtkCommonCoreModule.h" // For export macro
26 #include "vtkDataArray.h"
27 
28 // Fake the superclass for the wrappers.
29 #ifndef __VTK_WRAP__
30 #define vtkDataArray vtkAOSDataArrayTemplate<unsigned long>
31 #endif
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKCOMMONCORE_EXPORT vtkUnsignedLongArray : public vtkDataArray
34 {
35 public:
37 #ifndef __VTK_WRAP__
38 #undef vtkDataArray
39 #endif
40  static vtkUnsignedLongArray* New();
41  static vtkUnsignedLongArray* ExtendedNew();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44  // This macro expands to the set of method declarations that
45  // make up the interface of vtkAOSDataArrayTemplate, which is ignored
46  // by the wrappers.
47 #if defined(__VTK_WRAP__) || defined(__WRAP_GCCXML__)
48  vtkCreateWrappedArrayInterface(unsigned long);
49 #endif
50 
55  {
56  return static_cast<vtkUnsignedLongArray*>(Superclass::FastDownCast(source));
57  }
58 
62  static unsigned long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_MIN; }
63 
67  static unsigned long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_MAX; }
68 
69 protected:
71  ~vtkUnsignedLongArray() override;
72 
73 private:
74  typedef vtkAOSDataArrayTemplate<unsigned long> RealSuperclass;
75 
77  void operator=(const vtkUnsignedLongArray&) = delete;
78 };
79 
80 // Define vtkArrayDownCast implementation:
82 
83 VTK_ABI_NAMESPACE_END
84 #endif
static unsigned long GetDataTypeValueMax()
Get the maximum data value in its native type.
static unsigned long GetDataTypeValueMin()
Get the minimum data value in its native type.
vtkArrayDownCast_FastCastMacro(vtkUnsignedLongArray)
Abstract superclass for all arrays.
#define vtkCreateWrappedArrayInterface(T)
#define VTK_UNSIGNED_LONG_MAX
Definition: vtkType.h:150
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_UNSIGNED_LONG_MIN
Definition: vtkType.h:149
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkUnsignedLongArray * FastDownCast(vtkAbstractArray *source)
A faster alternative to SafeDownCast for downcasting vtkAbstractArrays.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
dynamic, self-adjusting array of unsigned long
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...