0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
Hypertable::PageArena< CharT, PageAllocatorT >::Page Struct Reference

A structure to manage a single memory page which is used to allocate smaller memory chunks. More...

Collaboration diagram for Hypertable::PageArena< CharT, PageAllocatorT >::Page:
Collaboration graph
[legend]

Public Member Functions

 Page (const char *end)
 
size_t remain () const
 
CharT * alloc (size_t sz)
 

Public Attributes

Pagenext_page
 
char * alloc_end
 
const char * page_end
 
char buf [1]
 

Detailed Description

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
struct Hypertable::PageArena< CharT, PageAllocatorT >::Page

A structure to manage a single memory page which is used to allocate smaller memory chunks.

Definition at line 81 of file PageArena.h.

Constructor & Destructor Documentation

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
Hypertable::PageArena< CharT, PageAllocatorT >::Page::Page ( const char *  end)
inline

Definition at line 87 of file PageArena.h.

Member Function Documentation

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
CharT* Hypertable::PageArena< CharT, PageAllocatorT >::Page::alloc ( size_t  sz)
inline

Definition at line 95 of file PageArena.h.

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
size_t Hypertable::PageArena< CharT, PageAllocatorT >::Page::remain ( ) const
inline

Definition at line 91 of file PageArena.h.

Member Data Documentation

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
char* Hypertable::PageArena< CharT, PageAllocatorT >::Page::alloc_end

Definition at line 83 of file PageArena.h.

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
char Hypertable::PageArena< CharT, PageAllocatorT >::Page::buf[1]

Definition at line 85 of file PageArena.h.

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
Page* Hypertable::PageArena< CharT, PageAllocatorT >::Page::next_page

Definition at line 82 of file PageArena.h.

template<typename CharT = char, class PageAllocatorT = DefaultPageAllocator>
const char* Hypertable::PageArena< CharT, PageAllocatorT >::Page::page_end

Definition at line 84 of file PageArena.h.


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