|
| void | AddAnnotation (const UObjectBase *Object, const TAnnotation &Annotation) |
| | Add an annotation to the annotation list. 更多...
|
| |
| void | AddAnnotation (int32 Index, const TAnnotation &Annotation) |
| | Add an annotation to the annotation list. 更多...
|
| |
|
uint32 | GetAllocatedSize () const |
| | Returns the memory allocated by the internal array
|
| |
| FORCEINLINE TAnnotation | GetAnnotation (const UObjectBase *Object) |
| | Return the annotation associated with a uobject 更多...
|
| |
| FORCEINLINE TAnnotation | GetAnnotation (int32 Index) |
| | Return the annotation associated with a uobject 更多...
|
| |
| FORCEINLINE TAnnotation & | GetAnnotationRef (const UObjectBase *Object) |
| | Return the annotation associated with a uobject 更多...
|
| |
| FORCEINLINE TAnnotation & | GetAnnotationRef (int32 Index) |
| | Return the annotation associated with a uobject. 更多...
|
| |
| virtual void | NotifyUObjectDeleted (const UObjectBase *Object, int32 Index) |
| | Interface for FUObjectAllocator::FUObjectDeleteListener 更多...
|
| |
|
virtual void | OnUObjectArrayShutdown () override |
| | Called when UObject Array is being shut down, this is where all listeners should be removed from it
|
| |
|
void | RemoveAllAnnotations () |
| | 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. 更多...
|
| |
|
virtual | ~FUObjectAnnotationDense () |
| | Destructor, removes all annotations, which removes the annotation as a uobject destruction listener
|
| |
| virtual void | NotifyUObjectDeleted (const class UObjectBase *Object, int32 Index)=0 |
| | Provides notification that a UObjectBase has been removed from the uobject array 更多...
|
| |
|
virtual void | OnUObjectArrayShutdown ()=0 |
| | Called when UObject Array is being shut down, this is where all listeners should be removed from it
|
| |
template<typename TAnnotation, bool bAutoRemove>
class FUObjectAnnotationDense< TAnnotation, bAutoRemove >
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.
- 参数
-
| TAnnotation | type of the annotation |
| bAutoRemove | if true, annotation will automatically be removed, otherwise in non-final builds it will verify that the annotation was removed by other means prior to destruction. |