ucommon
Public Member Functions | Protected Member Functions
ucommon::PagerPool Class Reference

Pager pool base class for managed memory pools. More...

#include <memory.h>

Inheritance diagram for ucommon::PagerPool:
Inheritance graph
[legend]

Public Member Functions

void put (PagerObject *object)
 Return a pager object back to our free list.
 
- Public Member Functions inherited from ucommon::MemoryProtocol
void * alloc (size_t size)
 Convenience function.
 
char * dup (const char *string)
 Duplicate NULL terminated string into allocated memory.
 
void * dup (void *memory, size_t size)
 Duplicate existing memory block into allocated memory.
 
void * zalloc (size_t size)
 Allocate memory from the pager heap.
 

Protected Member Functions

PagerObjectget (size_t size)
 
- Protected Member Functions inherited from ucommon::MemoryProtocol
virtual void * _alloc (size_t size)=0
 Protocol to allocate memory from the pager heap.
 
virtual void fault (void) const
 Allocation failure handler.
 

Detailed Description

Pager pool base class for managed memory pools.

This is a helper base class for the pager template and generally is not used by itself. If different type pools are intended to use a common memory pager then you will need to mixin a memory protocol object that performs redirection such as the MemoryRedirect class.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 865 of file memory.h.

Member Function Documentation

void ucommon::PagerPool::put ( PagerObject object)

Return a pager object back to our free list.

Parameters
objectto return to pool.

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