Navigation
API > API/Runtime > API/Runtime/ChaosCore > API/Runtime/ChaosCore/TObjectPool
Storage for an item, and an index of the next free item if it's currently on the free list.
| Name | TItem |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ObjectPool.h |
| Include Path | #include "Chaos/ObjectPool.h" |
Syntax
template<typename T_, typename Destructible>
struct TItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TItem() |
Chaos/ObjectPool.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NextFree | int32 | Free-list tracking, index of the next free item. | Chaos/ObjectPool.h | |
| Object | ObjectType | Object must always remain as the first item to enable casting between Item and Object. | Chaos/ObjectPool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetLive
(
bool |
Set whether the object is live - encapsulated in a function as the base template performs no action. | Chaos/ObjectPool.h |