FActorRepListRefView

Holds a list of replicated actors that can be added/removed to.

Windows
MacOS
Linux

References

Module

ReplicationGraph

Header

/Engine/Plugins/Runtime/ReplicationGraph/Source/Public/ReplicationGraphTypes.h

Include

#include "ReplicationGraphTypes.h"

Syntax

struct FActorRepListRefView

Remarks

Holds a list of replicated actors that can be added/removed to.

Constructors

Name Description

Public function

FActorRepListRefView()

Public function

FActorRepListRefView

(
    FActorRepList& InRepList
)

This constructor is deprecated since the class does not hold FActorRepList's anymore.

Functions

Name Description

Public function

void

 

Add

(
    const FActorRepListType& NewElemen...
)

Public function

void

 

AppendContentsFrom

(
    const FActorRepListRefView& Source
)

Public function Const

void

 

AppendToTArray

(
    TArray< FActorRepListType >& OutAr...
)

Add contents to TArray/TSet. this is intended for debugging/ease of use

Public function Const

void

 

AppendToTSet

(
    TSet< FActorRepListType >& OutSet
)

Public function Const

TArray< FAct...

 

begin()

Public function

TArray< FAct...

 

begin()

Public function Const

FString

 

BuildDebugString()

Public function

bool

 

ConditionalAdd

(
    const FActorRepListType& NewElemen...
)

Public function Const

bool

 

Contains

(
    const FActorRepListType& Value
)

Public function

void

 

CopyContentsFrom

(
    const FActorRepListRefView& Source
)

Public function Const

TArray< FAct...

 

end()

Public function

TArray< FAct...

 

end()

Public function Const

int32

 

IndexOf

(
    const FActorRepListType& Value
)

Public function Const

bool

 

IsEmpty()

Public function Const

int32

 

Num()

Public function

void

 

RemoveAtSwap

(
    int32 idx
)

Public function

bool

 

RemoveFast

(
    const FActorRepListType& ElementTo...
)

Removes the element quickly but changes the list order

Public function

bool

 

RemoveSlow

(
    const FActorRepListType& ElementTo...
)

Removes the element but keeps the order intact. Generally not recommended for large lists.

Public function

void

 

Reserve

(
    int32 Size
)

Preallocate the array so it can hold the specified size

Public function

void

 

Reset

(
    int32 ExpectedMaxSize
)

Empties the array but does not deallocate the internal memory.

Public function

void

 

TearDown()

Resets the container and returns the memory it held

Public function Const

bool

 

VerifyContents_Slow()

Operators

Name Description

Public function Const

const FActor...

 

operator[]

(
    int32 idx
)

Public function

FActorRepLis...

 

operator[]

(
    int32 idx
)

Base view functions.

Deprecated Functions

Name Description

Public function

 

FActorRepListRefView

(
    FActorRepList& InRepList
)

This constructor is deprecated since the class does not hold FActorRepList's anymore.

Public function Const

bool

 

IsValid()

IsValid is deprecated now that you don't need to call PrepareForWrite before doing operations on the list. Use IsEmpty() if you need to skip doing operations on empty lists

Public function

void

 

PrepareForWrite

(
    bool bResetContent
)

PrepareForWrite is not needed before calling operations on the RepList anymore. Use Reserve or Reset if you want to preallocate the array to a specific size

Public function

bool

 

Remove

(
    const FActorRepListType& ElementTo...
)

Remove has been deprecated in favor of RemoveSlow/RemoveFast. RemoveFast is the default recommendation unless you need the list order to be stable or are removing elements inside a RangedFor iteration loop.

Public function

void

 

ResetToNull()

ResetToNull was renamed to TearDown

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss