#include <CCAllocatorStrategyFixedBlock.h>
Public Member Functions | |
AllocatorStrategyFixedBlock (const char *tag=nullptr, size_t pageSize=100) | |
virtual | ~AllocatorStrategyFixedBlock () |
CC_ALLOCATOR_INLINE void * | allocate (size_t size) |
local | allocate ( local size) |
CC_ALLOCATOR_INLINE void | deallocate (void *address, size_t size=0) |
var | deallocate ( var address, var 0) |
local | deallocate ( local address, local 0) |
CC_ALLOCATOR_INLINE bool | owns (const void *const address) |
local | owns ( local address) |
Static Public Attributes | |
static const size_t | block_size = _block_size |
static const size_t | alignment = _alignment |
var | alignment = _alignment |
local | alignment = _alignment |
Protected Member Functions | |
CC_ALLOCATOR_INLINE void | push_front (void *block) |
var | push_front ( var block) |
local | push_front ( local block) |
CC_ALLOCATOR_INLINE void * | pop_front () |
local | pop_front () |
const size_t | pageSize () const |
CC_ALLOCATOR_INLINE void | allocatePage () |
var | allocatePage () |
local | allocatePage () |
Protected Attributes | |
void * | _list |
void * | _pages |
var | _pages |
local | _pages |
size_t | _pageSize |
size_t | _allocated |
Additional Inherited Members | |
Public Types inherited from AllocatorBase | |
enum | { kDefaultAlignment = 16 } |
typedef void * | pointer |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |