VTK
vtkLongArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLongArray.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 =========================================================================*/
31 #ifndef vtkLongArray_h
32 #define vtkLongArray_h
33 
34 // Tell the template header how to give our superclass a DLL interface.
35 #if !defined(vtkLongArray_cxx)
36 # define VTK_DATA_ARRAY_TEMPLATE_TYPE long
37 #endif
38 
39 #include "vtkCommonCoreModule.h" // For export macro
40 #include "vtkDataArray.h"
41 #include "vtkDataArrayTemplate.h" // Real Superclass
42 
43 // Fake the superclass for the wrappers.
44 #ifndef __WRAP__
45 #define vtkDataArray vtkDataArrayTemplate<long>
46 #endif
48 #ifndef __WRAP__
49 #undef vtkDataArray
50 #endif
51 {
52 public:
53  static vtkLongArray* New();
54  vtkTypeMacro(vtkLongArray,vtkDataArray);
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
57  // This macro expands to the set of method declarations that
58  // make up the interface of vtkDataArrayTemplate, which is ignored
59  // by the wrappers.
60 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
62 #endif
63 
65  static long GetDataTypeValueMin() { return VTK_LONG_MIN; }
66 
68  static long GetDataTypeValueMax() { return VTK_LONG_MAX; }
69 
70 protected:
71  vtkLongArray();
72  ~vtkLongArray();
73 
74 private:
75  //BTX
76  typedef vtkDataArrayTemplate<long> RealSuperclass;
77  //ETX
78  vtkLongArray(const vtkLongArray&); // Not implemented.
79  void operator=(const vtkLongArray&); // Not implemented.
80 };
81 
82 #endif
Implementation template for vtkDataArray.
dynamic, self-adjusting array of long
Definition: vtkLongArray.h:47
#define VTKCOMMONCORE_EXPORT
#define vtkCreateWrappedArrayInterface(T)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
#define VTK_LONG_MIN
Definition: vtkType.h:135
static long GetDataTypeValueMax()
Definition: vtkLongArray.h:68
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
static long GetDataTypeValueMin()
Definition: vtkLongArray.h:65
#define VTK_LONG_MAX
Definition: vtkType.h:136