VTK
vtkIdTypeArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIdTypeArray.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 =========================================================================*/
29 #ifndef vtkIdTypeArray_h
30 #define vtkIdTypeArray_h
31 
32 // Tell the template header how to give our superclass a DLL interface.
33 #if !(defined(vtkIdTypeArray_cxx) && defined(VTK_USE_64BIT_IDS)) && (defined(VTK_USE_64BIT_IDS) || !defined(vtkIntArray_h))
34 # define VTK_DATA_ARRAY_TEMPLATE_TYPE vtkIdType
35 #endif
36 
37 #include "vtkCommonCoreModule.h" // For export macro
38 #include "vtkDataArray.h"
39 #include "vtkDataArrayTemplate.h" // Real Superclass
40 
41 // Fake the superclass for the wrappers.
42 #ifndef __WRAP__
43 #define vtkDataArray vtkDataArrayTemplate<vtkIdType>
44 #endif
46 #ifndef __WRAP__
47 #undef vtkDataArray
48 #endif
49 {
50 public:
51  static vtkIdTypeArray* New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
55  // This macro expands to the set of method declarations that
56  // make up the interface of vtkDataArrayTemplate, which is ignored
57  // by the wrappers.
58 #if defined(__WRAP__) || defined (__WRAP_GCCXML__)
60 #else
61 
63 
65  {
66  // This needs to overwritten from superclass because
67  // the templated superclass is not able to differentiate
68  // vtkIdType from a long long or an int since vtkIdType
69  // is simply a typedef. This means that
70  // vtkDataArrayTemplate<vtkIdType> != vtkIdTypeArray.
71  return VTK_ID_TYPE;
72  }
73 #endif
74 
75 
78 
81 
82 protected:
84  ~vtkIdTypeArray();
85 
86 private:
87  //BTX
88  typedef vtkDataArrayTemplate<vtkIdType> RealSuperclass;
89  //ETX
90  vtkIdTypeArray(const vtkIdTypeArray&); // Not implemented.
91  void operator=(const vtkIdTypeArray&); // Not implemented.
92 };
93 
94 #endif
Implementation template for vtkDataArray.
static vtkIdType GetDataTypeValueMax()
#define VTKCOMMONCORE_EXPORT
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:275
static vtkIdType GetDataTypeValueMin()
#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_ID_MIN
Definition: vtkType.h:277
#define VTK_ID_MAX
Definition: vtkType.h:278
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_ID_TYPE
Definition: vtkType.h:37
static vtkObject * New()