29 #ifndef __MemoryNedAlloc_H__
30 #define __MemoryNedAlloc_H__
32 #if OGRE_MEMORY_ALLOCATOR == OGRE_MEMORY_ALLOCATOR_NED
49 static void* allocBytes(
size_t count,
50 const char* file,
int line,
const char* func);
51 static void deallocBytes(
void* ptr);
52 static void* allocBytesAligned(
size_t align,
size_t count,
53 const char* file,
int line,
const char* func);
54 static void deallocBytesAligned(
size_t align,
void* ptr);
70 const char* file = 0,
int line = 0,
const char* func = 0)
81 return std::numeric_limits<size_t>::max();
102 template <
size_t Alignment = 0>
108 [Alignment <= 128 && ((Alignment & (Alignment-1)) == 0) ? +1 : -1];
111 const char* file = 0,
int line = 0,
const char* func = 0)
124 return std::numeric_limits<size_t>::max();
143 #endif // __MemoryNedAlloc_H__
static void deallocBytesAligned(size_t align, void *ptr)
An allocation policy for use with AllocatedObject and STLAllocator.
static void deallocateBytes(void *ptr)
An allocation policy for use with AllocatedObject and STLAllocator, which aligns memory at a given bo...
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
static void * allocBytes(size_t count, const char *file, int line, const char *func)
static void * allocateBytes(size_t count, const char *file=0, int line=0, const char *func=0)
int IsValidAlignment[Alignment<=128 &&((Alignment &(Alignment-1))==0)?+1:-1]
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
Non-templated utility class just to hide nedmalloc.
static void deallocateBytes(void *ptr)
static void * allocBytesAligned(size_t align, size_t count, const char *file, int line, const char *func)
static size_t getMaxAllocationSize()
Get the maximum size of a single allocation.
static void deallocBytes(void *ptr)