12 #ifndef vtkVoidArray_h
13 #define vtkVoidArray_h
15 #include "vtkCommonCoreModule.h"
18 VTK_ABI_NAMESPACE_BEGIN
57 this->Allocate(number);
58 this->NumberOfPointers = number;
80 void InsertVoidPointer(
vtkIdType i,
void* ptr);
86 vtkIdType InsertNextVoidPointer(
void* tuple);
92 void Reset() { this->NumberOfPointers = 0; }
97 void Squeeze() { this->ResizeAndExtend(this->NumberOfPointers); }
132 VTK_ABI_NAMESPACE_END
vtkIdType GetNumberOfPointers()
Get the number of void* pointers held in the array.
void * GetVoidPointer(vtkIdType id)
Get the void* pointer at the ith location.
dynamic, self-adjusting array of void* pointers
abstract base class for most VTK objects
void SetVoidPointer(vtkIdType id, void *ptr)
Set the void* pointer value at the ith location in the array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDataType() const
Return the type of data.
void Squeeze()
Resize the array to just fit the inserted memory.
void ** GetPointer(vtkIdType id)
Get the address of a particular data index.
void Reset()
Reuse already allocated data; make the container look like it is empty.
int GetDataTypeSize()
Return the size of the data contained in the array.
vtkIdType NumberOfPointers
a simple class to control print indentation
void SetNumberOfPointers(vtkIdType number)
Set the number of void* pointers held in the array.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...