VTK
vtkUnsignedLongArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnsignedLongArray.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkUnsignedLongArray_h
27 #define vtkUnsignedLongArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(vtkUnsignedLongArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned long
32 #endif
33 
34 #include "vtkCommonCoreModule.h" // For export macro
35 #include "vtkDataArray.h"
36 #include "vtkDataArrayTemplate.h" // Real Superclass
37 
38 // Fake the superclass for the wrappers.
39 #ifndef __WRAP__
40 #define vtkDataArray vtkDataArrayTemplate<unsigned long>
41 #endif
43 #ifndef __WRAP__
44 #undef vtkDataArray
45 #endif
46 {
47 public:
48  static vtkUnsignedLongArray* New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
52  // This macro expands to the set of method declarations that
53  // make up the interface of vtkDataArrayTemplate, which is ignored
54  // by the wrappers.
55 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
56  vtkCreateWrappedArrayInterface(unsigned long);
57 #endif
58 
60  static unsigned long GetDataTypeValueMin() { return VTK_UNSIGNED_LONG_MIN; }
61 
63  static unsigned long GetDataTypeValueMax() { return VTK_UNSIGNED_LONG_MAX; }
64 
65 protected:
68 
69 private:
70  //BTX
71  typedef vtkDataArrayTemplate<unsigned long> RealSuperclass;
72  //ETX
73  vtkUnsignedLongArray(const vtkUnsignedLongArray&); // Not implemented.
74  void operator=(const vtkUnsignedLongArray&); // Not implemented.
75 };
76 
77 #endif
static unsigned long GetDataTypeValueMax()
Implementation template for vtkDataArray.
static unsigned long GetDataTypeValueMin()
#define VTKCOMMONCORE_EXPORT
#define VTK_UNSIGNED_LONG_MAX
Definition: vtkType.h:138
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
#define VTK_UNSIGNED_LONG_MIN
Definition: vtkType.h:137
#define vtkCreateWrappedArrayInterface(T)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
dynamic, self-adjusting array of unsigned long
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()