Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
leveldb::Arena Class Reference

#include <arena.h>

Public Member Functions

 Arena ()
 
 ~Arena ()
 
char * Allocate (size_t bytes)
 
char * AllocateAligned (size_t bytes)
 
size_t MemoryUsage () const
 

Private Member Functions

char * AllocateFallback (size_t bytes)
 
char * AllocateNewBlock (size_t block_bytes)
 
 Arena (const Arena &)
 
void operator= (const Arena &)
 

Private Attributes

char * alloc_ptr_
 
size_t alloc_bytes_remaining_
 
std::vector< char * > blocks_
 
size_t blocks_memory_
 

Detailed Description

Definition at line 15 of file arena.h.

Constructor & Destructor Documentation

leveldb::Arena::Arena ( )

Definition at line 12 of file arena.cc.

leveldb::Arena::~Arena ( )

Definition at line 18 of file arena.cc.

leveldb::Arena::Arena ( const Arena )
private

Member Function Documentation

char * leveldb::Arena::Allocate ( size_t  bytes)
inline

Definition at line 52 of file arena.h.

char * leveldb::Arena::AllocateAligned ( size_t  bytes)

Definition at line 42 of file arena.cc.

char * leveldb::Arena::AllocateFallback ( size_t  bytes)
private

Definition at line 24 of file arena.cc.

char * leveldb::Arena::AllocateNewBlock ( size_t  block_bytes)
private

Definition at line 61 of file arena.cc.

size_t leveldb::Arena::MemoryUsage ( ) const
inline

Definition at line 29 of file arena.h.

void leveldb::Arena::operator= ( const Arena )
private

Member Data Documentation

size_t leveldb::Arena::alloc_bytes_remaining_
private

Definition at line 39 of file arena.h.

char* leveldb::Arena::alloc_ptr_
private

Definition at line 38 of file arena.h.

std::vector<char*> leveldb::Arena::blocks_
private

Definition at line 42 of file arena.h.

size_t leveldb::Arena::blocks_memory_
private

Definition at line 45 of file arena.h.


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