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

◆ size_t

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

Constructor & Destructor Documentation

◆ dynamic_pool()

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

◆ ~dynamic_pool()

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

Member Function Documentation

◆ allocate()

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

◆ deallocate()

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

Friends And Related Function Documentation

◆ dynamic_auto

template<typename T >
friend class dynamic_auto
friend

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

Generated on Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page