Navigation
API > API/Runtime > API/Runtime/CoreUObject
FUObjectAnnotationTemp is a temporary annotation with the same API as FUObjectAnnotationSparse but without the thread safety or GC checks. It should only be used for single threaded functions and must be deleted before garbage collection occurs.
| Name | FUObjectAnnotationTemp |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectAnnotation.h |
| Include Path | #include "UObject/UObjectAnnotation.h" |
Syntax
template<typename TAnnotation>
class FUObjectAnnotationTemp
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUObjectAnnotationTemp() |
Constructor, initializes to nothing | UObject/UObjectAnnotation.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FUObjectAnnotationTemp() |
Destructor, removes all annotations | UObject/UObjectAnnotation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddAnnotation
(
const UObjectBase* Object, |
Add an annotation to the annotation list. | UObject/UObjectAnnotation.h | |
void AddAnnotation
(
const UObjectBase* Object, |
UObject/UObjectAnnotation.h | ||
TAnnotation GetAndRemoveAnnotation
(
const UObjectBase* Object |
Removes an annotation from the annotation list and returns the annotation if it had one | UObject/UObjectAnnotation.h | |
TAnnotation GetAnnotation
(
const UObjectBase* Object |
Return the annotation associated with a uobject | UObject/UObjectAnnotation.h | |
const TMap< const UObjectBase *, TAnnotation > & GetAnnotationMap() |
Return the annotation map. Caution, this is for low level use | UObject/UObjectAnnotation.h | |
void RemoveAllAnnotations() |
Removes all annotation from the annotation list. | UObject/UObjectAnnotation.h | |
void RemoveAnnotation
(
const UObjectBase* Object |
Removes an annotation from the annotation list. | UObject/UObjectAnnotation.h | |
void Reserve
(
int32 ExpectedNumElements |
Reserves memory for the annotation map for the specified number of elements, used to avoid reallocations. | UObject/UObjectAnnotation.h |