FEDEM Model Database  R8.0
Source code of the FEDEM model database
Classes | Macros
FFaMemPool.H File Reference

Streamlined efficient memory allocation. More...

#include <cstddef>
#include <vector>
#include <list>
#include <map>
Include dependency graph for FFaMemPool.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FFaMemPool
 Class to streamline efficient memory allocation. More...
 
class  FFaMemPoolMgr
 Memory pool manager. More...
 

Macros

#define FFA_MAKE_MEMPOOL
 Macro adding memory pool features to a class. More...
 

Detailed Description

Streamlined efficient memory allocation.

Macro Definition Documentation

◆ FFA_MAKE_MEMPOOL

#define FFA_MAKE_MEMPOOL
Value:
public: \
static void* operator new(size_t s) { return ourMemPool.doNew(s); } \
static void operator delete(void* p, size_t s) { ourMemPool.doDelete(p,s); } \
static void freePool() { ourMemPool.freePool(); } \
static void freePartOfPool(void* p) { ourMemPool.freePartOfPool(p); } \
static void usePartOfPool(void* p) { ourMemPool.usePartOfPool(p); } \
static void useDefaultPartOfPool() { ourMemPool.useDefaultPartOfPool();} \
private: \
static FFaMemPool ourMemPool
Class to streamline efficient memory allocation.
Definition: FFaMemPool.H:60

Macro adding memory pool features to a class.