Navigation
Unreal Engine C++ API Reference > Runtime > MediaUtils
Inheritance Hierarchy
References
Module | MediaUtils |
Header | /Engine/Source/Runtime/MediaUtils/Public/MediaObjectPool.h |
Include | #include "MediaObjectPool.h" |
Syntax
template<typename ObjectType, typename ObjectAllocator>
class TMediaObjectPool
Remarks
Template for media object pools.
Poolable objects are required to implement the IMediaPoolable interface.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TMediaObjectPool
(
ObjectAllocator* ObjectAllocatorInstance |
Default constructor. | |
![]() |
TMediaObjectPool
(
uint32 NumReserve |
Create and initialize a new instance. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
ObjectType * | Acquire () |
Acquire an untracked object from the pool. |
![]() |
TSharedRef< ObjectType, ESPMode::ThreadSafe > | Acquire a shared object from the pool. | |
![]() ![]() |
int32 | Num () |
Get the number of objects available in the pool. |
![]() |
void | Release
(
ObjectType* Object |
Return the given object to the pool. |
![]() |
void | Reset
(
uint32 NumObjects |
Reset the pool and reserve a specified number of objects. |
![]() |
void | Tick () |
Regular tick call |
![]() |
TSharedRef< ObjectType, ESPMode::ThreadSafe > | ToShared
(
ObjectType* Object |
Convert an object to a shared pooled object. |