![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <ObjectPool.h>
Public Member Functions | |
ObjectPool () | |
template<typename... Args> | |
PoolHandle | allocate (Args... args) |
void | deallocate (PoolHandle handle) |
PoolHandle | registerExisting (T &object) |
void | unregisterExisting (PoolHandle handle) |
T * | find (PoolHandle handle) const |
Protected Member Functions | |
PoolHandle | registerExistingInternal (T &object, bool retry) |
Protected Attributes | |
SharedMutex | _poolLock |
eastl::fixed_vector< PoolHandle, N, allowResize > | _ids {} |
eastl::fixed_vector< T *, N, allowResize > | _pool {} |
Definition at line 42 of file ObjectPool.h.
Divide::ObjectPool< T, N, allowResize >::ObjectPool |
Definition at line 39 of file ObjectPool.inl.
PoolHandle Divide::ObjectPool< T, N, allowResize >::allocate | ( | Args... | args | ) |
Definition at line 59 of file ObjectPool.inl.
void Divide::ObjectPool< T, N, allowResize >::deallocate | ( | PoolHandle | handle | ) |
Definition at line 66 of file ObjectPool.inl.
T * Divide::ObjectPool< T, N, allowResize >::find | ( | PoolHandle | handle | ) | const |
Definition at line 46 of file ObjectPool.inl.
FORCE_INLINE PoolHandle Divide::ObjectPool< T, N, allowResize >::registerExisting | ( | T & | object | ) |
Definition at line 77 of file ObjectPool.inl.
|
protected |
Definition at line 84 of file ObjectPool.inl.
void Divide::ObjectPool< T, N, allowResize >::unregisterExisting | ( | PoolHandle | handle | ) |
Definition at line 110 of file ObjectPool.inl.
|
protected |
Definition at line 61 of file ObjectPool.h.
|
protected |
Definition at line 62 of file ObjectPool.h.
|
mutableprotected |
Definition at line 59 of file ObjectPool.h.