Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Allocators::Storage_Commit< Allocator, GrowthPolicy > Class Template Reference

#include <allocator_policies.h>

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

◆ Storage_Commit()

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

◆ ~Storage_Commit()

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

Member Function Documentation

◆ Address()

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
uintptr_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::Address ( ) const
inline

◆ Capacity()

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

◆ Expand()

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
bool Allocators::Storage_Commit< Allocator, GrowthPolicy >::Expand ( size_t  requiredCapacity)
inline

◆ MaxCapacity()

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

◆ NONCOPYABLE()

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

◆ allocator

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
Allocator Allocators::Storage_Commit< Allocator, GrowthPolicy >::allocator
private

◆ capacity

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::capacity
private

◆ maxCapacity

template<class Allocator = Allocator_AddressSpace<>, class GrowthPolicy = Growth_Exponential<2,1>>
size_t Allocators::Storage_Commit< Allocator, GrowthPolicy >::maxCapacity
private

◆ storage

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: