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

memorypool.h File Reference

#include "common/scummsys.h"
#include "common/array.h"
Include dependency graph for memorypool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  Common::MemoryPool
 This class provides a pool of memory 'chunks' of identical size. More...
struct  Common::MemoryPool::Page
class  Common::FixedSizeMemoryPool< CHUNK_SIZE, NUM_INTERNAL_CHUNKS >
 This is a memory pool which already contains in itself some storage space for a fixed number of chunks. More...
class  Common::FixedSizeMemoryPool< CHUNK_SIZE, 0 >
class  Common::ObjectPool< T, NUM_INTERNAL_CHUNKS >
 A memory pool for C++ objects. More...


namespace  Common

Internal interface to the QuickTime audio decoder.


void * operator new (size_t nbytes, Common::MemoryPool &pool)
 A custom placement new operator, using an arbitrary MemoryPool.
void operator delete (void *p, Common::MemoryPool &pool)

Function Documentation

void operator delete ( void *  p,
Common::MemoryPool pool 
) [inline]

Definition at line 159 of file memorypool.h.

void* operator new ( size_t  nbytes,
Common::MemoryPool pool 
) [inline]

A custom placement new operator, using an arbitrary MemoryPool.

This *should* work with all C++ implementations, but may not.

For details on using placement new for custom allocators, see e.g. <>

Definition at line 154 of file memorypool.h.

Generated on Sat Sep 12 2020 05:02:19 for ResidualVM by doxygen 1.7.1
curved edge   curved edge