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

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

Definition at line 59 of file RPageAllocator.hxx.

Public Member Functions

RPage NewPage (std::size_t elementSize, std::size_t nElements) final
 Reserves memory large enough to hold nElements of the given size.

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::Internal::RPageAllocatorHeap:
ROOT::Internal::RPageAllocator

Member Function Documentation

◆ DeletePage()

void ROOT::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::Internal::RPageAllocator.

Definition at line 28 of file RPageAllocator.cxx.

◆ NewPage()

ROOT::Internal::RPage ROOT::Internal::RPageAllocatorHeap::NewPage ( 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::Internal::RPageAllocator.

Definition at line 20 of file RPageAllocator.cxx.


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