VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
26 #ifndef __vtkLongArray_h
27 #define __vtkLongArray_h
28 
29 // Tell the template header how to give our superclass a DLL interface.
30 #if !defined(__vtkLongArray_cxx)
31 # define VTK_DATA_ARRAY_TEMPLATE_TYPE 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<long>
41 #endif
43 #ifndef __WRAP__
44 #undef vtkDataArray
45 #endif
46 {
47 public:
48  static vtkLongArray* New();
49  vtkTypeMacro(vtkLongArray,vtkDataArray);
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 #ifdef __WRAP__
57 #endif
58 
60  static long GetDataTypeValueMin() { return VTK_LONG_MIN; }
61 
63  static long GetDataTypeValueMax() { return VTK_LONG_MAX; }
64 
65 protected:
66  vtkLongArray();
67  ~vtkLongArray();
68 
69 private:
70  //BTX
71  typedef vtkDataArrayTemplate<long> RealSuperclass;
72  //ETX
73  vtkLongArray(const vtkLongArray&); // Not implemented.
74  void operator=(const vtkLongArray&); // Not implemented.
75 };
76 
77 #endif
Implementation template for vtkDataArray.
dynamic, self-adjusting array of long
Definition: vtkLongArray.h:42
#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:53
#define VTK_LONG_MIN
Definition: vtkType.h:134
static long GetDataTypeValueMax()
Definition: vtkLongArray.h:63
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
static long GetDataTypeValueMin()
Definition: vtkLongArray.h:60
#define VTK_LONG_MAX
Definition: vtkType.h:135