Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MemCache.hpp File Reference

#include <cmath>
#include "common_headers.hpp"

Go to the source code of this file.

Compounds

class  MemCache

Defines

#define MINPOW   5
#define MAXPOW   22
#define NLISTS   MAXPOW-MINPOW+1


Define Documentation

#define MAXPOW   22
 

#define MINPOW   5
 

This is a cache for managing memory. You allocate a chunk of memory and request pointers to smaller pieces of it. You can also trade memory for bigger pieces. It will copy stuff over for you. This cache will only hand out memory in chunk sizes of powers of 2 from 2^10 through 2^22.

#define NLISTS   MAXPOW-MINPOW+1
 


Generated at Fri Jul 26 18:22:34 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000