Flan
Public Member Functions | List of all members
r8b::CStdClassAllocator Class Reference

The default base class for objects created on heap. More...

#include <r8bbase.h>

Inheritance diagram for r8b::CStdClassAllocator:
Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *p)
 
void * operator new (size_t n)
 
void * operator new[] (size_t n)
 
void operator delete (void *p)
 Operator frees a previously allocated memory block for the object. More...
 
void operator delete[] (void *p)
 Operator frees a previously allocated memory block for the object. More...
 

Detailed Description

The default base class for objects created on heap.

Class that implements "new" and "delete" operators that use standard malloc() and free() functions.

Member Function Documentation

◆ operator delete()

void r8b::CStdClassAllocator::operator delete ( void *  p)
inline

Operator frees a previously allocated memory block for the object.

Parameters
pPointer to the allocated memory block for the object.

◆ operator delete[]()

void r8b::CStdClassAllocator::operator delete[] ( void *  p)
inline

Operator frees a previously allocated memory block for the object.

Parameters
pPointer to the allocated memory block for the object.

◆ operator new() [1/2]

void* r8b::CStdClassAllocator::operator new ( size_t  ,
void *  p 
)
inline
Parameters
nThe size of the object, in bytes.
pPointer to object's pre-allocated memory block.
Returns
Pointer to object.

◆ operator new() [2/2]

void* r8b::CStdClassAllocator::operator new ( size_t  n)
inline
Parameters
nThe size of the object, in bytes.
Returns
Pointer to the allocated memory block for the object.

◆ operator new[]()

void* r8b::CStdClassAllocator::operator new[] ( size_t  n)
inline
Parameters
nThe size of the object, in bytes.
Returns
Pointer to the allocated memory block for the object.

The documentation for this class was generated from the following file: