Dune::SmallObjectPool Class Reference

#include <dune/common/smallobject.hh>

List of all members.

Classes

union  Block

Public Types

enum  { blockSize = sizeof( Block ) }
enum  { maxBlocks = (1 << 10) - 1 }
enum  { maxSize = maxBlocks * blockSize }

Static Public Member Functions

static void * allocate (unsigned int size)
static void free (void *ptr)

Member Enumeration Documentation

anonymous enum
Enumerator:
blockSize 
anonymous enum
Enumerator:
maxBlocks 
anonymous enum
Enumerator:
maxSize 

Member Function Documentation

static void* Dune::SmallObjectPool::allocate ( unsigned int  size  )  [inline, static]

References blockSize.

Referenced by Dune::SmallObject::operator new().

static void Dune::SmallObjectPool::free ( void *  ptr  )  [inline, static]

The documentation for this class was generated from the following file:
Generated on Mon Apr 26 10:45:24 2010 for dune-common by  doxygen 1.6.3