Module |
|
Header |
/Engine/Source/Runtime/MediaUtils/Public/MediaObjectPool.h |
Include |
#include "MediaObjectPool.h" |
template<typename ObjectType, typename ObjectAllocator>
class TMediaObjectPool
Template for media object pools.
Poolable objects are required to implement the IMediaPoolable interface.
Name | Description | |
---|---|---|
|
TMediaObjectPool ( |
Default constructor. |
|
TMediaObjectPool ( |
Create and initialize a new instance. |
Name | Description | ||
---|---|---|---|
|
ObjectType &... |
Acquire() |
Acquire an untracked object from the pool. |
|
TSharedRef< ... |
AcquireShared() |
Acquire a shared object from the pool. |
|
Num() |
Get the number of objects available in the pool. |
|
|
Release ( |
Return the given object to the pool. |
|
|
Reset ( |
Reset the pool and reserve a specified number of objects. |
|
|
Tick() |
Regular tick call |
|
|
TSharedRef< ... |
ToShared ( |
Convert an object to a shared pooled object. |