Go to the documentation of this file.
23 #ifndef vtkVoidArray_h
24 #define vtkVoidArray_h
54 {this->Allocate(number); this->NumberOfPointers = number;}
60 {
return this->NumberOfPointers;}
66 {
return this->Array[
id];}
72 {this->Array[
id] = ptr;}
87 {this->NumberOfPointers = 0;}
94 {this->ResizeAndExtend (this->NumberOfPointers);}
#define VTKCOMMONCORE_EXPORT
vtkIdType InsertNextVoidPointer(void *tuple)
void ** GetPointer(vtkIdType id)
void InsertVoidPointer(vtkIdType i, void *ptr)
void DeepCopy(vtkVoidArray *va)
void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of void* pointers
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
static vtkVoidArray * New()
void * GetVoidPointer(vtkIdType id)
void SetVoidPointer(vtkIdType id, void *ptr)
int Allocate(vtkIdType sz, vtkIdType ext=1000)
void ** WritePointer(vtkIdType id, vtkIdType number)
a simple class to control print indentation
void SetNumberOfPointers(vtkIdType number)
vtkIdType NumberOfPointers
void ** ResizeAndExtend(vtkIdType sz)
vtkIdType GetNumberOfPointers()