spot 2.15.1
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
spot::multiple_size_pool Class Reference

A multiple-size memory pool implementation. More...

#include <spot/misc/mspool.hh>

Collaboration diagram for spot::multiple_size_pool:

Public Member Functions

 multiple_size_pool ()
 Create a pool.
 
 ~multiple_size_pool ()
 Free any memory allocated by this pool.
 
size_t fixsize (size_t size) const
 
void * allocate (size_t size)
 Allocate size bytes of memory.
 
void deallocate (const void *ptr, size_t size)
 Recycle size bytes of memory.
 

Detailed Description

A multiple-size memory pool implementation.

Constructor & Destructor Documentation

◆ multiple_size_pool()

spot::multiple_size_pool::multiple_size_pool ( )
inline

Create a pool.

◆ ~multiple_size_pool()

spot::multiple_size_pool::~multiple_size_pool ( )
inline

Free any memory allocated by this pool.

Member Function Documentation

◆ allocate()

void * spot::multiple_size_pool::allocate ( size_t  size)
inline

Allocate size bytes of memory.


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Fri Feb 27 2015 10:00:07 for spot by doxygen 1.9.8