Nugget
|
#include <EASTLTest.h>
Public Types | |
using | base_type = eastl::allocator |
Public Member Functions | |
EASTL_ALLOCATOR_EXPLICIT | CountingAllocator (const char *pName=EASTL_NAME_VAL(EASTL_ALLOCATOR_DEFAULT_NAME)) |
CountingAllocator (const CountingAllocator &x) | |
CountingAllocator (const CountingAllocator &x, const char *pName) | |
CountingAllocator & | operator= (const CountingAllocator &x) |
virtual void * | allocate (size_t n, int flags=0) |
virtual void * | allocate (size_t n, size_t alignment, size_t offset, int flags=0) |
void | deallocate (void *p, size_t n) |
const char * | get_name () const |
void | set_name (const char *pName) |
Public Member Functions inherited from eastl::allocator | |
EASTL_ALLOCATOR_EXPLICIT | allocator (const char *pName=EASTL_NAME_VAL(EASTL_ALLOCATOR_DEFAULT_NAME)) |
allocator (const allocator &x) | |
allocator (const allocator &x, const char *pName) | |
allocator & | operator= (const allocator &x) |
void * | allocate (size_t n, int flags=0) |
void * | allocate (size_t n, size_t alignment, size_t offset, int flags=0) |
void | deallocate (void *p, size_t n) |
const char * | get_name () const |
void | set_name (const char *pName) |
Counts allocation events allowing unit tests to validate assumptions.