Navigation
API > API/Runtime > API/Runtime/ChaosCore > API/Runtime/ChaosCore/TObjectPool
A block is an area of memory large enough to hold NumInBlock items, correctly aligned and provide items on demand to the pool
| Name | FBlock |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/ChaosCore/Public/Chaos/ObjectPool.h |
| Include Path | #include "Chaos/ObjectPool.h" |
Syntax
struct FBlock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBlock () |
Chaos/ObjectPool.h | ||
FBlock
(
int32 InNum |
Chaos/ObjectPool.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FBlock() |
Chaos/ObjectPool.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Begin | FItem * | Ptr to the beginning of the block. | Chaos/ObjectPool.h | |
| FreeList | int32 | Head of the free list for this block. | Chaos/ObjectPool.h | |
| Next | FItem * | Ptr to the next free item when block is filling initially. | Chaos/ObjectPool.h | |
| NumFree | int32 | Count of free items in the block. | Chaos/ObjectPool.h | |
| NumInBlock | const int32 | Number of items the block can hold. | Chaos/ObjectPool.h | |
| NumValid | int32 | The maximum number of valid items in the block (items are valid if they were ever allocated / constructed) | Chaos/ObjectPool.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DestructAll() |
Chaos/ObjectPool.h | ||
void Free
(
ObjectType* Object |
Chaos/ObjectPool.h | ||
FPtr GetNextFree() |
Chaos/ObjectPool.h | ||
bool IsEmpty() |
Chaos/ObjectPool.h | ||
bool IsFull() |
Chaos/ObjectPool.h | ||
bool Owns
(
ObjectType* InPtr |
Chaos/ObjectPool.h | ||
void Reset() |
Chaos/ObjectPool.h |