Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Allocators::Storage_Commit< Allocator, GrowthPolicy > Class Template Reference

#include <allocator_policies.h>

Collaboration diagram for Allocators::Storage_Commit< Allocator, GrowthPolicy >:
Collaboration graph
[legend]

Public Member Functions

 Storage_Commit (size_t maxCapacity_)
 
 ~Storage_Commit ()
 
uintptr_t Address () const
 
size_t Capacity () const
 
size_t MaxCapacity () const
 
bool Expand (size_t requiredCapacity)
 

Private Member Functions

 NONCOPYABLE (Storage_Commit)
 

Private Attributes

Allocator allocator
 
size_t maxCapacity
 
void * storage
 
size_t capacity
 

Constructor & Destructor Documentation

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
Allocators::Storage_Commit< Allocator, GrowthPolicy >::Storage_Commit ( size_t  maxCapacity_)
inline
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
Allocators::Storage_Commit< Allocator, GrowthPolicy >::~Storage_Commit ( )
inline

Member Function Documentation

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
uintptr_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::Address ( ) const
inline
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::Capacity ( ) const
inline
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
bool Allocators::Storage_Commit< Allocator, GrowthPolicy >::Expand ( size_t  requiredCapacity)
inline
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::MaxCapacity ( ) const
inline
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
Allocators::Storage_Commit< Allocator, GrowthPolicy >::NONCOPYABLE ( Storage_Commit< Allocator, GrowthPolicy >  )
private

Member Data Documentation

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
Allocator Allocators::Storage_Commit< Allocator, GrowthPolicy >::allocator
private
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::capacity
private
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::maxCapacity
private
template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
void* Allocators::Storage_Commit< Allocator, GrowthPolicy >::storage
private

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