hx3d
1
2D/3D Simple Game Framework
|
Manage poolable elements. More...
#include <pool.hpp>
Public Member Functions | |
template<class... Args> | |
Pool (unsigned int size, Args...args) | |
Construct a pool with a size and arguments. More... | |
const Ptr< T > & | take () |
Fetch a free poolable element. More... | |
void | release (const Ptr< T > &ptr) |
Release a poolable element. More... | |
const std::set< Ptr< T > > & | getWorking () |
Get the locked elements. More... | |
Manage poolable elements.
hx3d::Pool< T >::Pool | ( | unsigned int | size, |
Args... | args | ||
) |
Construct a pool with a size and arguments.
size | Size |
args | Arguments |
Definition at line 27 of file pool.inl.hpp.
const std::set< Ptr< T > > & hx3d::Pool< T >::getWorking | ( | ) |
void hx3d::Pool< T >::release | ( | const Ptr< T > & | ptr | ) |
Release a poolable element.
ptr | Poolable (Ptr) |
Definition at line 55 of file pool.inl.hpp.
const Ptr< T > & hx3d::Pool< T >::take | ( | ) |