Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Allocators::Arena< Storage > Class Template Reference

allocator design parameters: More...

#include <arena.h>

Public Member Functions

 Arena (size_t maxSize)
 
size_t RemainingBytes () const
 
void * allocate (size_t size)
 
void deallocate (void *p, size_t size)
 
void DeallocateAll ()
 
bool Contains (uintptr_t address) const
 

Private Member Functions

 NONCOPYABLE (Arena)
 

Private Attributes

Storage storage
 
size_t end
 

Detailed Description

template<class Storage = Storage_Fixed<>>
class Allocators::Arena< Storage >

allocator design parameters:

Definition at line 43 of file arena.h.

Constructor & Destructor Documentation

template<class Storage = Storage_Fixed<>>
Allocators::Arena< Storage >::Arena ( size_t  maxSize)
inline

Definition at line 47 of file arena.h.

Member Function Documentation

template<class Storage = Storage_Fixed<>>
void* Allocators::Arena< Storage >::allocate ( size_t  size)
inline

Definition at line 58 of file arena.h.

template<class Storage = Storage_Fixed<>>
bool Allocators::Arena< Storage >::Contains ( uintptr_t  address) const
inline

Definition at line 74 of file arena.h.

template<class Storage = Storage_Fixed<>>
void Allocators::Arena< Storage >::deallocate ( void *  p,
size_t  size 
)
inline

Definition at line 63 of file arena.h.

template<class Storage = Storage_Fixed<>>
void Allocators::Arena< Storage >::DeallocateAll ( )
inline

Definition at line 68 of file arena.h.

template<class Storage = Storage_Fixed<>>
Allocators::Arena< Storage >::NONCOPYABLE ( Arena< Storage )
private
template<class Storage = Storage_Fixed<>>
size_t Allocators::Arena< Storage >::RemainingBytes ( ) const
inline

Definition at line 53 of file arena.h.

Member Data Documentation

template<class Storage = Storage_Fixed<>>
size_t Allocators::Arena< Storage >::end
private

Definition at line 81 of file arena.h.

template<class Storage = Storage_Fixed<>>
Storage Allocators::Arena< Storage >::storage
private

Definition at line 80 of file arena.h.


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