Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cHeapObject.h File Reference
#include "cHeap.h"

Go to the source code of this file.

Classes

interface  Gray::IHeapObject
 
class  Gray::cHeapObject
 

Namespaces

 Gray
 < The main namespace for all Core functions.
 

Macros

#define CHEAPOBJECT_IMPL   const void* get_HeapPtr() const noexcept override { return this; }
 
#define DECLARE_HEAP_ALIGNED_ALLOCN(_CLASS, _IALIGN)
 
#define DECLARE_HEAP_ALIGNED_ALLOC(_CLASS)   DECLARE_HEAP_ALIGNED_ALLOCN(_CLASS,__alignof( _CLASS ))
 

Detailed Description

Macro Definition Documentation

◆ CHEAPOBJECT_IMPL

#define CHEAPOBJECT_IMPL   const void* get_HeapPtr() const noexcept override { return this; }

◆ DECLARE_HEAP_ALIGNED_ALLOC

#define DECLARE_HEAP_ALIGNED_ALLOC (   _CLASS)    DECLARE_HEAP_ALIGNED_ALLOCN(_CLASS,__alignof( _CLASS ))

◆ DECLARE_HEAP_ALIGNED_ALLOCN

#define DECLARE_HEAP_ALIGNED_ALLOCN (   _CLASS,
  _IALIGN 
)
Value:
public: \
static void* operator new( size_t nCount) \
{ return cHeapAlign::AllocPtr( nCount, _IALIGN ); } \
static void operator delete(void* pData) \
{ cHeapAlign::FreePtr(pData); }