0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
Hypertable::DefaultPageAllocator Struct Reference

A memory allocator using std::malloc() and std::free(). More...

#include <PageArena.h>

Inheritance diagram for Hypertable::DefaultPageAllocator:
Inheritance graph
[legend]

Public Member Functions

void * allocate (size_t sz)
 Allocates a new chunk of memory. More...
 
void deallocate (void *p)
 Frees a previously allocated chunk of memory. More...
 
void freed (size_t sz)
 Inform the allocator that a bulk of objects was freed by the caller. More...
 

Detailed Description

A memory allocator using std::malloc() and std::free().

Definition at line 52 of file PageArena.h.

Member Function Documentation

void* Hypertable::DefaultPageAllocator::allocate ( size_t  sz)
inline

Allocates a new chunk of memory.

Definition at line 54 of file PageArena.h.

void Hypertable::DefaultPageAllocator::deallocate ( void *  p)
inline

Frees a previously allocated chunk of memory.

Definition at line 57 of file PageArena.h.

void Hypertable::DefaultPageAllocator::freed ( size_t  sz)
inline

Inform the allocator that a bulk of objects was freed by the caller.

Definition at line 60 of file PageArena.h.


The documentation for this struct was generated from the following file: