TAllocInterface Class Reference

This class represents abstract class (interface) with methods for allocating memory via operators new, delete, new[] and delete[]. More...

#include <AllocInterface.h>

Inheritance diagram for TAllocInterface:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TAllocInterface (void)
 Constructor.
 ~TAllocInterface (void)
 Destructor.
void * operator new (size_t size)
 Operator new.
void * operator new[] (size_t size)
 Operator new[].
void operator delete (void *ptr)
 Operator delete.
void operator delete[] (void *ptr)
 Operator delete [].

Detailed Description

This class represents abstract class (interface) with methods for allocating memory via operators new, delete, new[] and delete[].

Any class derived from this class contains this operators.

There may exists instance of this class, but it does nothing.

 Usage:
        class TNewClass: public TAllocInterface{...}
*

Definition at line 39 of file AllocInterface.h.


Constructor & Destructor Documentation

TAllocInterface::TAllocInterface void   )  [inline]
 

Constructor.

Definition at line 45 of file AllocInterface.h.

TAllocInterface::~TAllocInterface void   )  [inline]
 

Destructor.

Definition at line 48 of file AllocInterface.h.


Member Function Documentation

void TAllocInterface::operator delete void *  ptr  )  [inline]
 

Operator delete.

Parameters:
ptr [in] pointer to release

Definition at line 63 of file AllocInterface.h.

References TMemManager::free_mem().

Here is the call graph for this function:

void TAllocInterface::operator delete[] void *  ptr  )  [inline]
 

Operator delete [].

Parameters:
ptr [in] pointer to release

Definition at line 67 of file AllocInterface.h.

References TMemManager::free_mem().

Here is the call graph for this function:

void* TAllocInterface::operator new size_t  size  )  [inline]
 

Operator new.

Parameters:
size [in] number of bytes to allocate

Definition at line 55 of file AllocInterface.h.

References TMemManager::new_mem().

Here is the call graph for this function:

void* TAllocInterface::operator new[] size_t  size  )  [inline]
 

Operator new[].

Parameters:
size [in] number of bytes to allocate

Definition at line 59 of file AllocInterface.h.

References TMemManager::new_mem().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Wed Nov 28 22:41:16 2007 for Joy4D by  doxygen 1.4.6-NO