![]() |
Leviathan
0.8.0.0
Leviathan game engine
|
A tiny wrapper around boost pool. More...
#include <ObjectPool.h>
Public Member Functions | |
BasicPool () | |
~BasicPool () | |
template<typename... Args> | |
ElementType * | ConstructNew (Args &&... args) |
Constructs a new component of the held type for entity. More... | |
void | Destroy (ElementType *element) |
Destroys a created element. More... | |
Protected Attributes | |
boost::pool | Elements |
Pool for objects. More... | |
A tiny wrapper around boost pool.
Definition at line 24 of file ObjectPool.h.
|
inline |
Definition at line 26 of file ObjectPool.h.
|
inline |
Definition at line 33 of file ObjectPool.h.
|
inline |
Constructs a new component of the held type for entity.
Exception | when component has not been created |
Definition at line 40 of file ObjectPool.h.
|
inline |
|
protected |
Pool for objects.
Definition at line 85 of file ObjectPool.h.