Navigation
API > API/Runtime > API/Runtime/IrisCore
Experimental support for more explicit interface to edit FastArrays which can be used to avoid polling The idea is that the interface would implement a subset of the Array interface and be used instead of directly modifying the array
| Name | TIrisFastArrayEditor |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |
| Include Path | #include "Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h" |
Syntax
template<typename FastArrayType>
class TIrisFastArrayEditor
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIrisFastArrayEditor
(
FastArrayType& InFastArray |
Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FastArrayItemArrayType | FastArrayType::ItemArrayType | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
| FastArrayItemType | FastArrayItemArrayType::ElementType | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
| FIrisFastArraySerializerPrivateAccessor | Private::FIrisFastArraySerializerPrivateAccessor | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FastArray | FastArrayType & | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | ||
| FastArrayType | friend | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
const FastArrayItemType& ItemEntry |
Add Item to array and call MarkItemDirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
void AddLocal
(
const FastArrayItemType& ItemEntry |
Local add which will add item to array without dirtying it | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
FastArrayItemType & Edit
(
int32 ItemIdx |
Edit Item in array and call MarkItemDirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
FastArrayItemType & EditLocal
(
int32 ItemIdx |
Local edit which will modify local item without dirtying it | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
void Empty() |
Empty array and call MarkArrayDirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
void MarkArrayDirty() |
Forwards MarkArrayDirty call to FastArray and if the FastArray is bound it will also update DirtyState tracking | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
void MarkItemDirty
(
FastArrayItemType& Item |
Forwards MarkItemDirty call to FastArray and if the FastArray is bound it will also update DirtyState tracking | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
int32 Num() |
Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | ||
void Remove
(
int32 ItemIdx |
Remove item at the specified index, will forward call to MarkArrayDirty, if bound will mark all potentially moved items as dirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h | |
void RemoveAtSwap
(
int32 ItemIdx |
Remove item at the specified index, will only mark the affected item dirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FastArrayItemType & operator[]
(
int32 ItemIdx |
Mutable access to Item, will call MarkItemDirty | Iris/ReplicationState/Private/IrisFastArraySerializerInternal.h |