Main Page   Namespace List   Class Hierarchy   Alphabetical List   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 on Wed Nov 3 12:59:15 2004 for Lemur Toolkit by doxygen1.2.18