Vertica documentation is moving! Use our new documentation site at https://docs.rocketsoftware.com/bundle/vertica_24.1/page/index.html

Vertica::VTAllocator Class Reference

A pool-based allocator that is provided to simplify memory management for UDF implementors.

Collaboration diagram for Vertica::VTAllocator:

Public Member Functions
virtual void * alloc (size_t size)=0
virtual void free (void *ptr, size_t size)

Detailed Description

A pool-based allocator that is provided to simplify memory management for UDF implementors.

Member Function Documentation

◆alloc()

virtual void* Vertica::VTAllocator::alloc(size_t size)

pure virtual Allocate size_t bytes of memory on a pool. This memory is guaranteed to persist beyond the destroy call but might have been destroyed when the dtor is run or freed explicitly.

◆free()

virtual void Vertica::VTAllocator::free(void * ptr, size_t size)

inlinevirtual

Free size_t bytes of memory allocated for ptr. Caution: safety is only guaranteed if free() is called on the same VTAllocator object that performed the alloc()