버전

menu_open
Wwise SDK 2023.1.4
AK::ObjectPool< T, AllocatorType, LockType > 클래스 템플릿 참조

An object pool of N reusable objects with one allocation. 더 자세히 ...

#include <AkObjectPool.h>

AK::ObjectPool< T, AllocatorType, LockType >에 대한 상속 다이어그램 :
AkArrayAllocatorNoAlign< T_MEMID > AK::ObjectPoolNoLock

클래스

union  DataType
 

Public 타입

using ValueType = T
 
using SizeType = AkUInt32
 

Public 멤버 함수

 ObjectPool ()=default
 
 ObjectPool (const ObjectPool &)=delete
 
 ObjectPool (ObjectPool &&)=delete
 
 ~ObjectPool ()
 
ObjectPooloperator= (const ObjectPool &)=delete
 
ObjectPooloperator= (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 ValueTypeAllocate ()
 
AK_NODISCARD ValueTypeAllocateZeroFilled ()
 Initialize memory before returning. 더 자세히 ...
 

정적 Public 속성

static constexpr SizeType kInvalidIndex = (SizeType)-1
 

Friends

struct UnitTest::ObjectPoolHelper
 

상세한 설명

template<typename T, typename AllocatorType = ObjectPoolDefaultAllocator<>, typename LockType = ObjectPoolDefaultLockType>
class AK::ObjectPool< T, AllocatorType, LockType >

An object pool of N reusable objects with one allocation.

AkObjectPool.h 파일의 58 번째 라인에서 정의되었습니다.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요