Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

big_block_pool Class Reference

An implementation of pooled memory allocation that makes use of the large memory block allocation class, big_block_alloc. More...

#include <blockpool.h>

Inheritance diagram for big_block_pool:

Inheritance graph
[legend]
Collaboration diagram for big_block_pool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 big_block_pool (void)
 ~big_block_pool (void)
void * MemAlloc (unsigned int num_bytes)
 Implementations of block_pool virtual functions low level, system dependent, memory allocation.

void MemFree (void *address)
 low level, system dependent memory free


Protected Member Functions

void getinfo (unsigned int &p_size, unsigned int &a_gran)

Private Attributes

big_block_alloc block_alloc

Detailed Description

An implementation of pooled memory allocation that makes use of the large memory block allocation class, big_block_alloc.

Definition at line 156 of file blockpool.h.


Constructor & Destructor Documentation

big_block_pool::big_block_pool void   )  [inline]
 

Definition at line 167 of file blockpool.h.

00167 : block_pool() {}

big_block_pool::~big_block_pool void   )  [inline]
 

Definition at line 168 of file blockpool.h.

References block_pool::free_pool().

00169   {
00170     free_pool();  // inherited from block_pool
00171   }


Member Function Documentation

void big_block_pool::getinfo unsigned int &  p_size,
unsigned int &  a_gran
[inline, protected, virtual]
 

Implements block_pool.

Definition at line 161 of file blockpool.h.

References block_alloc, and big_block_alloc::get_info().

00162   {
00163     block_alloc.get_info( p_size, a_gran );
00164   }

void* big_block_pool::MemAlloc unsigned int  num_bytes  )  [inline, virtual]
 

Implementations of block_pool virtual functions low level, system dependent, memory allocation.

Implements block_pool.

Definition at line 177 of file blockpool.h.

References block_alloc, and big_block_alloc::MemoryAlloc().

00178   {
00179     return block_alloc.MemoryAlloc( num_bytes );
00180   }

void big_block_pool::MemFree void *  address  )  [inline, virtual]
 

low level, system dependent memory free

Implements block_pool.

Definition at line 186 of file blockpool.h.

References block_alloc, and big_block_alloc::MemoryFree().

00187   {
00188     block_alloc.MemoryFree( address );
00189   }


Member Data Documentation

big_block_alloc big_block_pool::block_alloc [private]
 

Definition at line 158 of file blockpool.h.

Referenced by getinfo(), MemAlloc(), and MemFree().


The documentation for this class was generated from the following file:
Generated on Wed Mar 31 21:16:05 2004 for Data Structures for a VHDL Compiler by doxygen 1.3.3