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

blockpool.h File Reference

The documentation in this file is formatted for doxygen (see www.doxygen.org). More...

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Compounds

struct  block_pool::block_chain_struct
 typedef for memory block chain. More...

class  block_pool
 This class supports memory pool allocation. More...


Defines

#define Chain_block(p)   ((p)->block)
 return the memory block. More...

#define Chain_bytes_used(p)   ((p)->bytes_used)
 return the number of bytes used. More...

#define Chain_block_size(p)   ((p)->block_size)
 return the size of the memory block. More...

#define Chain_next(p)   ((p)->next_block)
 return the next block_chain structure in the list. More...


Detailed Description

The documentation in this file is formatted for doxygen (see www.doxygen.org).

Copyright and Use

You may use this source code without limitation and without fee as long as you include:

This software was written and is copyrighted by Ian Kaplan, Bear Products International, www.bearcave.com, 2002.

This software is provided "as is", without any warranty or claim as to its usefulness. Anyone who uses this source code uses it at their own risk. Nor is any support provided by Ian Kaplan and Bear Products International.

Please send any bug fixes or suggested source changes to:

     iank@bearcave.com

Author:
Ian Kaplan

Definition in file blockpool.h.


Define Documentation

#define Chain_block( p )   ((p)->block)
 

return the memory block.

Definition at line 158 of file blockpool.h.

Referenced by block_pool::new_block(), and block_pool::pool_alloc().

#define Chain_block_size( p )   ((p)->block_size)
 

return the size of the memory block.

Definition at line 164 of file blockpool.h.

Referenced by block_pool::new_block(), block_pool::pool_alloc(), and block_pool::print_block_pool_info().

#define Chain_bytes_used( p )   ((p)->bytes_used)
 

return the number of bytes used.

Definition at line 161 of file blockpool.h.

Referenced by block_pool::new_block(), block_pool::pool_alloc(), and block_pool::print_block_pool_info().

#define Chain_next( p )   ((p)->next_block)
 

return the next block_chain structure in the list.

Definition at line 167 of file blockpool.h.

Referenced by block_pool::add_block(), block_pool::free_pool(), block_pool::new_block(), and block_pool::print_block_pool_info().


Generated at Sat Aug 10 13:23:35 2002 for Wavelet Packet Transform and Lossless Compression by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001