15#include "vtkCommonCoreModule.h"
18VTK_ABI_NAMESPACE_BEGIN
57 this->Allocate(number);
58 this->NumberOfPointers = number;
92 void Reset() { this->NumberOfPointers = 0; }
97 void Squeeze() { this->ResizeAndExtend(this->NumberOfPointers); }
a simple class to control print indentation
abstract base class for most VTK objects
dynamic, self-adjusting array of void* pointers
vtkIdType InsertNextVoidPointer(void *tuple)
Insert (memory allocation performed) the void* pointer at the end of the array.
void ** GetPointer(vtkIdType id)
Get the address of a particular data index.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Squeeze()
Resize the array to just fit the inserted memory.
static vtkVoidArray * New()
Initialize with empty array.
void ** ResizeAndExtend(vtkIdType sz)
void SetVoidPointer(vtkIdType id, void *ptr)
Set the void* pointer value at the ith location in the array.
void SetNumberOfPointers(vtkIdType number)
Set the number of void* pointers held in the array.
void Initialize()
Release storage and reset array to initial state.
void ** WritePointer(vtkIdType id, vtkIdType number)
Get the address of a particular data index.
vtkIdType GetNumberOfPointers()
Get the number of void* pointers held in the array.
vtkIdType NumberOfPointers
void InsertVoidPointer(vtkIdType i, void *ptr)
Insert (memory allocation performed) the void* into the ith location in the array.
void Reset()
Reuse already allocated data; make the container look like it is empty.
void DeepCopy(vtkVoidArray *va)
Deep copy of another void array.
void * GetVoidPointer(vtkIdType id)
Get the void* pointer at the ith location.
int GetDataType() const
Return the type of data.
vtkTypeBool Allocate(vtkIdType sz, vtkIdType ext=1000)
Allocate memory for this array.
int GetDataTypeSize()
Return the size of the data contained in the array.
static vtkVoidArray * ExtendedNew()