utilmm::pools::dynamic_pool Class Reference

#include <utilmm/memory/dynamic_pool.hh>

List of all members.

Public Types

typedef boost::uint32_t size_t

Public Member Functions

 dynamic_pool ()
 ~dynamic_pool ()
void * allocate (size_t size)
void deallocate (void *vbuffer)

Friends

class dynamic_auto

Classes

struct  item_t


Detailed Description

A memory_pool is a way to handle allocation and reallocation of fixed-length memory items, but with the ability to change the size at runtime. It is designed to be used for small classes with subclasses

NEVER put the pointer returned by dynamic_pool into an auto_ptr. Use dynamic_ptr instead.


Member Typedef Documentation

typedef boost::uint32_t utilmm::pools::dynamic_pool::size_t


Constructor & Destructor Documentation

utilmm::pools::dynamic_pool::dynamic_pool (  ) 

utilmm::pools::dynamic_pool::~dynamic_pool (  ) 


Member Function Documentation

void* utilmm::pools::dynamic_pool::allocate ( size_t  size  ) 

void utilmm::pools::dynamic_pool::deallocate ( void *  vbuffer  ) 


Friends And Related Function Documentation

friend class dynamic_auto [friend]


The documentation for this class was generated from the following file:
Generated on Tue Feb 19 10:51:02 2008 for Util-- by doxygen 1.5.3
SourceForge.net Project Page