33template <
class ScalarTypeT>
110 void operator=(
const vtkBuffer&) =
delete;
113template <
class ScalarT>
119template <
class ScalarT>
127template <
typename ScalarT>
141template <
typename ScalarT>
147template <
typename ScalarT>
154template <
typename ScalarT>
168template <
typename ScalarT>
199template <
typename ScalarT>
210 bool forceFreeFunction =
false;
222 forceFreeFunction =
true;
260 this->
Size = newsize;
bool Reallocate(vtkIdType newsize)
Allocate a new buffer that holds newsize elements.
ScalarType * GetBuffer()
Access the buffer as a scalar pointer.
vtkFreeingFunction DeleteFunction
vtkMallocingFunction MallocFunction
const ScalarType * GetBuffer() const
void SetReallocFunction(vtkReallocingFunction reallocFunction=realloc)
Set the realloc function to be used when allocating space inside this object.
static vtkBuffer< ScalarTypeT > * ExtendedNew()
void SetMallocFunction(vtkMallocingFunction mallocFunction=malloc)
Set the malloc function to be used when allocating space inside this object.
vtkIdType GetSize() const
Return the number of elements the current buffer can hold.
vtkTemplateTypeMacro(vtkBuffer< ScalarTypeT >, vtkObject)
void SetFreeFunction(bool noFreeFunction, vtkFreeingFunction deleteFunction=free)
Set the free function to be used when releasing this object.
vtkReallocingFunction ReallocFunction
bool Allocate(vtkIdType size)
Allocate a new buffer that holds size elements.
static vtkBuffer< ScalarTypeT > * New()
void SetBuffer(ScalarType *array, vtkIdType size)
Set the memory buffer that this vtkBuffer object will manage.
A class to help modify and restore the global UsingMemkind state, like SetUsingMemkind(newValue),...
static vtkFreeingFunction GetCurrentFreeFunction()
static vtkMallocingFunction GetCurrentMallocFunction()
static vtkReallocingFunction GetCurrentReallocFunction()
void *(* vtkMallocingFunction)(size_t)
void *(* vtkReallocingFunction)(void *, size_t)
void(* vtkFreeingFunction)(void *)
#define VTK_STANDARD_NEW_BODY(thisClass)