Util--  1.1
Classes | Public Types | Public Member Functions | Friends | List of all members
utilmm::pools::dynamic_pool Class Reference

#include <utilmm/memory/dynamic_pool.hh>

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

template<typename T >
class dynamic_auto
 

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

template<typename T >
friend class dynamic_auto
friend

The documentation for this class was generated from the following file:

Generated on Tue Oct 9 2018 10:12:46 for Util-- by doxygen 1.8.6
SourceForge.net Project Page