Navigation
API > API/Plugins > API/Plugins/ConcertSyncCore > API/Plugins/ConcertSyncCore/Replication > API/Plugins/ConcertSyncCore/Replication/Misc
Inheritance Hierarchy
- FNoncopyable
- FObjectPathHierarchy
- FReplicatedObjectHierarchyCache
References
| Module | ConcertSyncCore |
| Header | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncCore/Source/ConcertSyncCore/Public/Replication/Misc/ReplicatedObjectHierarchyCache.h |
| Include | #include "Replication/Misc/ReplicatedObjectHierarchyCache.h" |
Syntax
class FReplicatedObjectHierarchyCache : private UE::ConcertSyncCore::FObjectPathHierarchy
Remarks
Holds the outer hierarchy of all objects registered in any stream. Updates the hierarchy when a relevant event changing stream content happens.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clear () |
Removes all saved state. | |
| bool | HasChildren
(
const FSoftObjectPath& Object |
||
| bool | IsEmpty () |
Checks there is an hierarchy. | |
| TOptional< EHierarchyObjectType > | IsInHierarchy
(
const FSoftObjectPath& Object |
||
| bool | IsObjectReferencedDirectly
(
const FSoftObjectPath& ObjectPath, |
Checks whether the object is registered by any client (except for this in IgnoredClients). | |
| void | OnChangeStreams
(
const FGuid& ClientId, |
||
| void | OnJoin
(
const FGuid& ClientId, |
Validated network events that modify the known hierarchy of objects. | |
| void | OnPostClientLeft
(
const FGuid& ClientId, |
||
| void | TraverseBottomToTop
(
TFunctionRef< EBreakBehavior(const FChildRelation&Relation)> Callback, |
Traverses the hierarchy in post-order (children first, then the root), starting at an optional parent object. | |
| void | TraverseTopToBottom
(
TFunctionRef< ETreeTraversalBehavior(const FChildRelation&Relation)> Callback, |
AddObject and RemoveObject are not supposed to be invoked - use the dedicated OnX events below. |