Navigation
API > API/Plugins > API/Plugins/ReplicationGraph
Templatd struct for mapping UClasses to some data type. The main things this provides is that if a UClass* was not explicitly added, it will climb the class heirachy and find the best match (and then store this for faster lookup next time)
| Name | TClassMap |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/ReplicationGraph/Source/Public/ReplicationGraphTypes.h |
| Include Path | #include "ReplicationGraphTypes.h" |
Syntax
template<typename ValueType>
struct TClassMap
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| InitNewElement | TFunction< bool(UClass *, ValueType &)> | ReplicationGraphTypes.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Map | TMap< FObjectKey, ValueType > | ReplicationGraphTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const UClass* Class, |
Returns if class has data in the map. | ReplicationGraphTypes.h | |
void CountBytes
(
FArchive& Ar |
ReplicationGraphTypes.h | ||
TMap< FObjectKey, ValueType >::TIterator CreateIterator() |
ReplicationGraphTypes.h | ||
void Emplace
(
UClass* InClass, |
ReplicationGraphTypes.h | ||
const ValueType * FindWithoutClassRecursion
(
UClass* Class |
Just finds element. Does not climb class hierarchy is explicit entry is not found. | ReplicationGraphTypes.h | |
ValueType * Get
(
UClass* Class |
ReplicationGraphTypes.h | ||
ValueType & GetChecked
(
UClass* Class |
Returns ClassInfo for a given class. | ReplicationGraphTypes.h | |
void Reset() |
ReplicationGraphTypes.h | ||
void Set
(
UClass* InClass, |
Sets class info for a given class. Call this in your Replication Graphs setup | ReplicationGraphTypes.h |