menu
版本
2022.1.18.8567
2024.1.3.8749
2023.1.11.8682
2022.1.18.8567
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
2024.1.3.8749
2023.1.11.8682
2022.1.18.8567
2021.1.14.8108
2019.2.15.7667
2019.1.11.7296
2018.1.11.6987
2017.2.10.6745
2017.1.9.6501
2016.2.6.6153
2015.1.9.5624
Wwise SDK 2022.1.18
|
An object pool of N reusable objects with one allocation. 更多...
#include <AkObjectPool.h>
类 | |
union | DataType |
Public 类型 | |
using | ValueType = T |
using | SizeType = AkUInt32 |
Public 成员函数 | |
ObjectPool ()=default | |
ObjectPool (const ObjectPool &)=delete | |
ObjectPool (ObjectPool &&)=delete | |
~ObjectPool () | |
ObjectPool & | operator= (const ObjectPool &)=delete |
ObjectPool & | operator= (ObjectPool &&)=delete |
AKRESULT | Init (SizeType count) |
void | Term () |
AK_NODISCARD SizeType | Size () const |
AK_NODISCARD SizeType | Capacity () const |
AK_NODISCARD bool | IsFull () const |
AK_NODISCARD bool | IsEmpty () const |
AKRESULT | Deallocate (ValueType *data) |
void | Clear () |
AK_NODISCARD ValueType * | Allocate () |
AK_NODISCARD ValueType * | AllocateZeroFilled () |
Initialize memory before returning. 更多... | |
静态 Public 属性 | |
static constexpr SizeType | kInvalidIndex = (SizeType)-1 |
友元 | |
struct | UnitTest::ObjectPoolHelper |
An object pool of N reusable objects with one allocation.
在文件 AkObjectPool.h 第 58 行定义.