A closure that can free the memory associated with a mapped page.
The page pool, once taken ownership of pages, must know how to free them. When registering a new page with the page pool, the passed page deleter encapsulates that knowledge.
Definition at line 39 of file RPageAllocator.hxx.
Public Member Functions | |
RPageDeleter () | |
RPageDeleter (const RPageDeleter &other)=default | |
RPageDeleter (decltype(fFnDelete) fnDelete) | |
RPageDeleter (decltype(fFnDelete) fnDelete, void *userData) | |
~RPageDeleter ()=default | |
void | operator() (const RPage &page) |
RPageDeleter & | operator= (const RPageDeleter &other)=default |
Private Attributes | |
std::function< void(const RPage &page, void *userData)> | fFnDelete |
The callable that is suppped to free the given page; it is called with fUserData as the second argument. | |
void * | fUserData |
Optionally additional information necessary to free resources associated with a page. | |
#include <ROOT/RPageAllocator.hxx>
|
inline |
Definition at line 49 of file RPageAllocator.hxx.
|
inlineexplicit |
Definition at line 50 of file RPageAllocator.hxx.
|
inline |
Definition at line 51 of file RPageAllocator.hxx.
|
default |
|
default |
Definition at line 56 of file RPageAllocator.hxx.
|
default |
|
private |
The callable that is suppped to free the given page; it is called with fUserData as the second argument.
Definition at line 42 of file RPageAllocator.hxx.
|
private |
Optionally additional information necessary to free resources associated with a page.
For instance, when the page is read from a TKey, user data points to the ROOT object created for reading, which needs to be freed as well.
Definition at line 46 of file RPageAllocator.hxx.