Apparatus Version 1.23
ECS data-oriented workflow for Unreal Engine.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FSubjectHandles4 Struct Reference

Four subject handles as a cache-friendly struct. More...

#include <SubjectHandles4.h>

Public Member Functions

int32 Add (const FCommonSubjectHandle &SubjectHandle)
 Add a new subject handle.
 
int32 AddUnique (const FCommonSubjectHandle &SubjectHandle)
 Add a unique subject handle.
 
void Remove (const FSubjectHandle &SubjectHandle)
 Remove a subject handle.
 
void CleanUp ()
 Remove all invalid subject handles (if any).
 
int32 Num () const
 Get the number of elements in the list.
 
FSubjectHandleAt (const int32 Index)
 Get a subject handle by its index.
 
const FSubjectHandleAt (const int32 Index) const
 Get a subject handle by its index.
 
FSubjectHandleoperator[] (const int32 Index)
 Get a subject handle by its index.
 
const FSubjectHandleoperator[] (const int32 Index) const
 Get a subject handle by its index.
 
void Empty ()
 Empty the list.
 

Detailed Description

Four subject handles as a cache-friendly struct.

Note
Only valid subject handles can be added, but if the subject becomes invalid during the runtime it will still be present in the array.

Member Function Documentation

◆ Add()

int32 FSubjectHandles4::Add ( const FCommonSubjectHandle SubjectHandle)
inline

Add a new subject handle.

Only valid subjects are added.

Parameters
SubjectHandleA subject handle to add.
Returns
The index of the added element.

◆ AddUnique()

int32 FSubjectHandles4::AddUnique ( const FCommonSubjectHandle SubjectHandle)
inline

Add a unique subject handle.

Only valid subjects are added.

Parameters
SubjectHandleA subject handle to add.
Returns
The index of the added (or existing equal) element.

◆ At() [1/2]

FSubjectHandle & FSubjectHandles4::At ( const int32  Index)
inline

Get a subject handle by its index.

◆ At() [2/2]

const FSubjectHandle & FSubjectHandles4::At ( const int32  Index) const
inline

Get a subject handle by its index.

Constant version.

◆ CleanUp()

void FSubjectHandles4::CleanUp ( )
inline

Remove all invalid subject handles (if any).

◆ Empty()

void FSubjectHandles4::Empty ( )
inline

Empty the list.

◆ Num()

int32 FSubjectHandles4::Num ( ) const
inline

Get the number of elements in the list.

◆ operator[]() [1/2]

FSubjectHandle & FSubjectHandles4::operator[] ( const int32  Index)
inline

Get a subject handle by its index.

◆ operator[]() [2/2]

const FSubjectHandle & FSubjectHandles4::operator[] ( const int32  Index) const
inline

Get a subject handle by its index.

Constant version.

◆ Remove()

void FSubjectHandles4::Remove ( const FSubjectHandle SubjectHandle)
inline

Remove a subject handle.


The documentation for this struct was generated from the following file: