Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Detail::RPageAllocatorHeap Class Reference

Uses standard C++ memory allocation for the column data pages.

The page allocator acquires and releases memory for pages. It does not populate the pages, the returned pages are empty but guaranteed to have enough contiguous space for the given number of elements. While a common concrete implementation uses the heap, other implementations are possible, e.g. using arenas or mmap().

Definition at line 71 of file RPageAllocator.hxx.

Static Public Member Functions

static void DeletePage (const RPage &page)
 Releases the memory pointed to by page and resets the page's information.
 
static RPage NewPage (ColumnId_t columnId, std::size_t elementSize, std::size_t nElements)
 Reserves memory large enough to hold nElements of the given size.
 

#include <ROOT/RPageAllocator.hxx>

Member Function Documentation

◆ DeletePage()

void ROOT::Experimental::Detail::RPageAllocatorHeap::DeletePage ( const RPage page)
static

Releases the memory pointed to by page and resets the page's information.

Definition at line 30 of file RPageAllocator.cxx.

◆ NewPage()

ROOT::Experimental::Detail::RPage ROOT::Experimental::Detail::RPageAllocatorHeap::NewPage ( ColumnId_t  columnId,
std::size_t  elementSize,
std::size_t  nElements 
)
static

Reserves memory large enough to hold nElements of the given size.

The page is immediately tagged with a column id.

Definition at line 21 of file RPageAllocator.cxx.


The documentation for this class was generated from the following files: