Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkUnsignedLongArray.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkUnsignedLongArray.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00039 #ifndef __vtkUnsignedLongArray_h
00040 #define __vtkUnsignedLongArray_h
00041 
00042 // Tell the template header how to give our superclass a DLL interface.
00043 #if !defined(__vtkUnsignedLongArray_cxx)
00044 # define VTK_DATA_ARRAY_TEMPLATE_TYPE unsigned long
00045 #endif
00046 
00047 #include "vtkDataArray.h"
00048 #include "vtkDataArrayTemplate.h" // Real Superclass
00049 
00050 // Fake the superclass for the wrappers.
00051 #define vtkDataArray vtkDataArrayTemplate<unsigned long>
00052 class VTK_COMMON_EXPORT vtkUnsignedLongArray : public vtkDataArray
00053 #undef vtkDataArray
00054 {
00055 public:
00056   static vtkUnsignedLongArray* New();
00057   vtkTypeRevisionMacro(vtkUnsignedLongArray,vtkDataArray);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   int GetDataType()
00063     { return VTK_UNSIGNED_LONG; }
00065 
00067 
00068   unsigned long GetValue(vtkIdType id)
00069     { return this->RealSuperclass::GetValue(id); }
00071 
00073 
00075   void SetValue(vtkIdType id, unsigned long value)
00076     { this->RealSuperclass::SetValue(id, value); }
00078 
00080 
00083   void SetNumberOfValues(vtkIdType number)
00084     { this->RealSuperclass::SetNumberOfValues(number); }
00086 
00088 
00089   void InsertValue(vtkIdType id, unsigned long f)
00090     { this->RealSuperclass::InsertValue(id, f); }
00092 
00094 
00096   vtkIdType InsertNextValue(unsigned long f)
00097     { return this->RealSuperclass::InsertNextValue(f); }
00099 
00101 
00104   unsigned long* WritePointer(vtkIdType id, vtkIdType number)
00105     { return this->RealSuperclass::WritePointer(id, number); }
00107 
00109 
00111   unsigned long* GetPointer(vtkIdType id)
00112     { return this->RealSuperclass::GetPointer(id); }
00114 
00116 
00122   void SetArray(unsigned long* array, vtkIdType size, int save)
00123     { this->RealSuperclass::SetArray(array, size, save); }
00125 
00126 protected:
00127   vtkUnsignedLongArray(vtkIdType numComp=1);
00128   ~vtkUnsignedLongArray();
00129 
00130 private:
00131   //BTX
00132   typedef vtkDataArrayTemplate<unsigned long> RealSuperclass;
00133   //ETX
00134   vtkUnsignedLongArray(const vtkUnsignedLongArray&);  // Not implemented.
00135   void operator=(const vtkUnsignedLongArray&);  // Not implemented.
00136 };
00137 
00138 #endif