ucommon::MemoryRedirect Class Reference

A redirection base class for the memory protocol. More...

#include <protocols.h>

Inheritance diagram for ucommon::MemoryRedirect:

Inheritance graph
[legend]
Collaboration diagram for ucommon::MemoryRedirect:

Collaboration graph
[legend]

Public Member Functions

virtual void * _alloc (size_t size)
 Protocol to allocate memory from the pager heap.
 MemoryRedirect (MemoryProtocol *protocol)

Detailed Description

A redirection base class for the memory protocol.

This is used because sometimes we choose a common memory pool to manage different objects.

Author:
David Sugar <dyfet@gnutelephony.org>

Definition at line 103 of file protocols.h.


Member Function Documentation

virtual void* ucommon::MemoryRedirect::_alloc ( size_t  size  )  [virtual]

Protocol to allocate memory from the pager heap.

The size of the request must be less than the size of the memory page used. The actual method is in a derived or stacked object.

Parameters:
size of memory request.
Returns:
allocated memory or NULL if not possible.

Implements ucommon::MemoryProtocol.


The documentation for this class was generated from the following file:
Generated on 14 Aug 2013 for UCommon by  doxygen 1.4.7