Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
Inheritance Hierarchy
- FUObjectArray::FUObjectDeleteListener
- FUObjectAnnotationDense
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectAnnotation.h |
Include | #include "UObject/UObjectAnnotation.h" |
Syntax
template<typename TAnnotation, bool bAutoRemove>
class FUObjectAnnotationDense : public FUObjectArray::FUObjectDeleteListener
Remarks
FUObjectAnnotationDense is a helper class that is used to store dense, fast, temporary, editor only, external or other tangential information about UObjects.
There is a notion of a default annotation and UObjects default to this annotation.
Annotations are automatically returned to the default when UObjects are destroyed. Annotation are not "garbage collection aware", so it isn't safe to store pointers to other UObjects in an annotation unless external guarantees are made such that destruction of the other object removes the annotation.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Destructor, removes all annotations, which removes the annotation as a uobject destruction listener |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddAnnotation
(
const UObjectBase* Object, |
Add an annotation to the annotation list. |
![]() |
void | AddAnnotation
(
const UObjectBase* Object, |
|
![]() |
void | AddAnnotation
(
int32 Index, |
Add an annotation to the annotation list. |
![]() |
void | AddAnnotation
(
int32 Index, |
|
![]() ![]() |
uint32 | Returns the memory allocated by the internal array | |
![]() |
TAnnotation | GetAnnotation
(
const UObjectBase* Object |
Return the annotation associated with a uobject |
![]() |
TAnnotation | GetAnnotation
(
int32 Index |
Return the annotation associated with a uobject |
![]() |
TAnnotation & | GetAnnotationRef
(
const UObjectBase* Object |
Return the annotation associated with a uobject |
![]() |
TAnnotation & | GetAnnotationRef
(
int32 Index |
Return the annotation associated with a uobject. Adds one if the object has no annotation yet. |
![]() ![]() |
void | NotifyUObjectDeleted
(
const UObjectBase* Object, |
Interface for FUObjectAllocator::FUObjectDeleteListener |
![]() |
void | Removes all annotation from the annotation list. | |
![]() |
void | RemoveAnnotation
(
const UObjectBase* Object |
Removes an annotation from the annotation list. |
![]() |
void | RemoveAnnotation
(
int32 Index |
Removes an annotation from the annotation list. |
Overridden from FUObjectDeleteListener
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Called when UObject Array is being shut down, this is where all listeners should be removed from it |