Apparatus
Version 1.23
ECS data-oriented workflow for Unreal Engine.
|
Common chain cursor functionality. More...
#include <CommonChain.h>
Public Member Functions | |
const FCommonChain * | GetOwner () const |
Get the owning chain of the cursor. | |
int32 | GetChainSlotIndex () const |
Get the global (chain-relative) index of the current slot. | |
bool | IsLimitReached () const |
Check if the iterating limit was reached. | |
bool | ShouldStop () const |
Check if the cursor should stop iterating. | |
Protected Member Functions | |
FCommonCursor (const FCommonChain *const InOwner, const int32 InOffset=0, const int32 InLimit=TNumericLimits< int32 >::Max()) | |
Initialize a new cursor instance for a chain. | |
FCommonCursor (FCommonCursor &&InCursor) | |
Move-initialize a cursor. | |
FCommonCursor (const FCommonCursor &InCursor) | |
Copy-initialize a cursor. | |
FCommonCursor () | |
Initialize a new invalid cursor. | |
virtual | ~FCommonCursor () |
Finalize the cursor. | |
Protected Attributes | |
const FCommonChain * | Owner = nullptr |
The owner of the cursor. | |
int32 | Offset = 0 |
The chain slot index offset to begin with. | |
int32 | Limit = TNumericLimits<int32>::Max() |
The maximum number of slots to iterate by. | |
int32 | SlotIndex = InvalidSlotIndex |
The current local slot index. | |
int32 | SegmentIndex = InvalidSegmentIndex |
The index of the currently iterated chain segment. | |
Common chain cursor functionality.
All cursors inherit from this class.
|
inlineprotected |
Initialize a new cursor instance for a chain.
InOwner | The owner of the cursor to iterate. |
InOffset | The slot offset of the cursor to begin with. |
InLimit | The maximum number of slots to iterate by. |
|
inlineprotected |
Move-initialize a cursor.
|
inlineprotected |
Copy-initialize a cursor.
InCursor | The original cursor to copy. |
|
inlineprotected |
Initialize a new invalid cursor.
|
inlineprotectedvirtual |
Finalize the cursor.
|
inline |
Get the global (chain-relative) index of the current slot.
|
inline |
Get the owning chain of the cursor.
|
inline |
Check if the iterating limit was reached.
|
inline |
Check if the cursor should stop iterating.
|
protected |
The maximum number of slots to iterate by.
If the slot index is equal to or greater than this, the iterating should stop.
|
protected |
The chain slot index offset to begin with.
|
protected |
The owner of the cursor.
The chain being iterated. If it's a non-null, the chain is being retained.
|
protected |
The index of the currently iterated chain segment.
|
protected |
The current local slot index.