ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::ObjectPool< T, NUM_INTERNAL_CHUNKS > Class Template Reference

A memory pool for C++ objects. More...

#include <memorypool.h>

Inheritance diagram for Common::ObjectPool< T, NUM_INTERNAL_CHUNKS >:
Collaboration diagram for Common::ObjectPool< T, NUM_INTERNAL_CHUNKS >:

List of all members.

Public Member Functions

void deleteChunk (T *ptr)
 Return the memory chunk used as storage for the given object back to the pool, after calling its destructor.

Detailed Description

template<class T, size_t NUM_INTERNAL_CHUNKS = 32>
class Common::ObjectPool< T, NUM_INTERNAL_CHUNKS >

A memory pool for C++ objects.

Definition at line 132 of file memorypool.h.


Member Function Documentation

template<class T, size_t NUM_INTERNAL_CHUNKS = 32>
void Common::ObjectPool< T, NUM_INTERNAL_CHUNKS >::deleteChunk ( T *  ptr  )  [inline]

Return the memory chunk used as storage for the given object back to the pool, after calling its destructor.

Definition at line 138 of file memorypool.h.


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


Generated on Sat Mar 23 2019 05:07:08 for ResidualVM by doxygen 1.7.1
curved edge   curved edge