#include <CCAllocatorStrategyGlobalSmallBlock.h>
Public Member Functions | |
void | _lazy_init () |
AllocatorStrategyGlobalSmallBlock () | |
AllocatorStrategyGlobalSmallBlock () | |
AllocatorStrategyGlobalSmallBlock () | |
virtual | ~AllocatorStrategyGlobalSmallBlock () |
local | ~AllocatorStrategyGlobalSmallBlock () |
CC_ALLOCATOR_INLINE void * | allocate (size_t size) |
local | allocate ( local size) |
CC_ALLOCATOR_INLINE void | deallocate (void *address, size_t size=0) |
local | deallocate ( local address, local 0) |
Static Public Attributes | |
static const size_t | kDefaultSmallBlockCount = 100 |
var | kDefaultSmallBlockCount = 100 |
local | kDefaultSmallBlockCount = 100 |
static const size_t | kMaxSmallBlockPower = 13 |
var | kMaxSmallBlockPower = 13 |
local | kMaxSmallBlockPower = 13 |
Protected Attributes | |
size_t | _maxBlockSize |
AllocatorBase * | _smallBlockAllocators [kMaxSmallBlockPower+1] |
Additional Inherited Members | |
Public Types inherited from AllocatorBase | |
enum | { kDefaultAlignment = 16 } |
typedef void * | pointer |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |