#include <CCAllocatorStrategyPool.h>
Public Types | |
typedef T | value_type |
typedef value_type * | pointer |
typedef AllocatorStrategyFixedBlock < sizeof(T), O::alignment, locking_traits > | tParentStrategy |
![]() | |
enum | { kDefaultAlignment = 16 } |
typedef void * | pointer |
Public Member Functions | |
AllocatorStrategyPool (const char *tag=nullptr, size_t poolSize=100) | |
CC_ALLOCATOR_INLINE void * | allocate (size_t size) |
CC_ALLOCATOR_INLINE void | deallocate (void *address, size_t size=0) |
![]() | |
AllocatorStrategyFixedBlock (const char *tag=nullptr, size_t pageSize=100) | |
virtual | ~AllocatorStrategyFixedBlock () |
CC_ALLOCATOR_INLINE void * | allocate (size_t size) |
CC_ALLOCATOR_INLINE void | deallocate (void *address, size_t size=0) |
CC_ALLOCATOR_INLINE bool | owns (const void *const address) |
Additional Inherited Members | |
![]() | |
static const size_t | block_size |
static const size_t | alignment |
![]() | |
CC_ALLOCATOR_INLINE void | push_front (void *block) |
CC_ALLOCATOR_INLINE void * | pop_front () |
const size_t | pageSize () const |
CC_ALLOCATOR_INLINE void | allocatePage () |
![]() | |
void * | _list |
void * | _pages |
size_t | _pageSize |
size_t | _allocated |
typedef value_type* pointer |
typedef AllocatorStrategyFixedBlock <sizeof(T), O::alignment, locking_traits> tParentStrategy |
typedef T value_type |
|
inline |
|
inline |
|
inline |