#include <omallocClass.h>
Definition at line 19 of file omallocClass.h.
◆ operator delete()
void omallocClass::operator delete |
( |
void * |
block | ) |
|
throw | ( | |
| ) | | |
|
inline |
◆ operator delete[]()
void omallocClass::operator delete[] |
( |
void * |
block | ) |
|
throw | ( | |
| ) | | |
|
inline |
◆ operator new() [1/2]
void * omallocClass::operator new |
( |
size_t |
size | ) |
|
throw | ( | std::bad_alloc |
| ) | | |
|
inline |
Definition at line 24 of file omallocClass.h.
28{
29 void* addr;
31 return addr;
32}
#define omTypeAlloc(type, addr, size)
◆ operator new() [2/2]
void * omallocClass::operator new |
( |
size_t |
size, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
Definition at line 34 of file omallocClass.cc.
35{
36 void* addr;
38 return addr;
39}
◆ operator new[]() [1/2]
void * omallocClass::operator new[] |
( |
size_t |
size | ) |
|
throw | ( | std::bad_alloc |
| ) | | |
|
inline |
Definition at line 43 of file omallocClass.h.
47{
48 void* addr;
49 if (
size==(
size_t)0)
size = (size_t)1;
51 return addr;
52}
◆ operator new[]() [2/2]
void * omallocClass::operator new[] |
( |
size_t |
size, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
Definition at line 41 of file omallocClass.cc.
42{
43 void* addr;
44 if (
size==(
size_t)0)
size = (size_t)1;
46 return addr;
47}
The documentation for this class was generated from the following files: