Jpp
17.1.1
the software that should make you happy
|
Base class for customized new/delete operators. More...
#include <JObjectAllocator.hh>
Static Public Member Functions | |
static JAllocator_t & | getInstance () |
Get reference to unique instance of this class object. More... | |
static void * | operator new (const std::size_t size) |
new operator. More... | |
static void | operator delete (void *p, const std::size_t size) |
delete operator. More... | |
Static Public Attributes | |
static const std::size_t | BLOCK_SIZE = sizeof(T) |
size of object [Byte] More... | |
Protected Member Functions | |
JObjectAllocator () | |
Defaul constructor. More... | |
Base class for customized new/delete operators.
The first template argument refers to the data type for new/delete operations and the second to the memory management class.
Possible syntax:
#include "JLang/JRAM.hh"
class A : public JLANG::JObjectAllocator<A, JRAM> { };
In this case, the new/delete operations are implemented by the JLANG::JRAM class.
Definition at line 29 of file JObjectAllocator.hh.
|
inlineprotected |
|
inlinestatic |
Get reference to unique instance of this class object.
Definition at line 44 of file JObjectAllocator.hh.
|
inlinestatic |
new operator.
Definition at line 60 of file JObjectAllocator.hh.
|
inlinestatic |
delete operator.
p | pointer to object to be freed |
size | number of bytes |
Definition at line 72 of file JObjectAllocator.hh.
|
static |
size of object [Byte]
Definition at line 52 of file JObjectAllocator.hh.