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

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

Definition at line 63 of file RPageAllocator.hxx.

Public Member Functions

RPage NewPage (ColumnId_t columnId, std::size_t elementSize, std::size_t nElements) final
 Reserves memory large enough to hold nElements of the given size.
 
- Public Member Functions inherited from ROOT::Experimental::Internal::RPageAllocator
virtual ~RPageAllocator ()=default
 

Protected Member Functions

void DeletePage (RPage &page) final
 Releases the memory pointed to by page and resets the page's information.
 

#include <ROOT/RPageAllocator.hxx>

Inheritance diagram for ROOT::Experimental::Internal::RPageAllocatorHeap:
[legend]

Member Function Documentation

◆ DeletePage()

void ROOT::Experimental::Internal::RPageAllocatorHeap::DeletePage ( RPage page)
finalprotectedvirtual

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

Note that the memory of the zero page must not be deleted. Called by the RPage destructor.

Implements ROOT::Experimental::Internal::RPageAllocator.

Definition at line 33 of file RPageAllocator.cxx.

◆ NewPage()

ROOT::Experimental::Internal::RPage ROOT::Experimental::Internal::RPageAllocatorHeap::NewPage ( ColumnId_t  columnId,
std::size_t  elementSize,
std::size_t  nElements 
)
finalvirtual

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

The page is immediately tagged with a column id. Returns a default constructed page on out-of-memory condition.

Implements ROOT::Experimental::Internal::RPageAllocator.

Definition at line 23 of file RPageAllocator.cxx.

Libraries for ROOT::Experimental::Internal::RPageAllocatorHeap:

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