engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove > 模板类 参考

FUObjectAnnotationSparseSearchable is a helper class that is used to store sparse, slow, temporary, editor only, external or other low priority information about UObjects...and also provides the ability to find a object based on the unique annotation. 更多...

#include <UObjectAnnotation.h>

+ 类 FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove > 继承关系图:

Public 成员函数

void AddAnnotation (const UObjectBase *Object, const TAnnotation &Annotation)
 Add an annotation to the annotation list. 更多...
 
UObject * Find (const TAnnotation &Annotation)
 Find the UObject associated with a given annotation 更多...
 
virtual void NotifyUObjectDeleted (const UObjectBase *Object, int32 Index) override
 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. 更多...
 
virtual ~FUObjectAnnotationSparseSearchable ()
 Destructor, removes all annotations, which removes the annotation as a uobject destruction listener
 
- Public 成员函数 继承自 FUObjectAnnotationSparse< TAnnotation, bAutoRemove >
void AddAnnotation (const UObjectBase *Object, TAnnotation &&Annotation)
 Add an annotation to the annotation list. 更多...
 
 FUObjectAnnotationSparse ()
 Constructor, initializes to nothing
 
TAnnotation GetAndRemoveAnnotation (const UObjectBase *Object)
 Removes an annotation from the annotation list and returns the annotation if it had one 更多...
 
FORCEINLINE TAnnotation GetAnnotation (const UObjectBase *Object)
 Return the annotation associated with a uobject 更多...
 
const TMap< const UObjectBase *, TAnnotation > & GetAnnotationMap () const
 Return the annotation map. 更多...
 
virtual void NotifyUObjectDeleted (const UObjectBase *Object, int32 Index) override
 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 Reserve (int32 ExpectedNumElements)
 Reserves memory for the annotation map for the specified number of elements, used to avoid reallocations.
 
virtual ~FUObjectAnnotationSparse ()
 Destructor, removes all annotations, which removes the annotation as a uobject destruction listener
 
- Public 成员函数 继承自 FUObjectArray::FUObjectDeleteListener
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 FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove >

FUObjectAnnotationSparseSearchable is a helper class that is used to store sparse, slow, temporary, editor only, external or other low priority information about UObjects...and also provides the ability to find a object based on the unique annotation.

All of the restrictions mentioned for FUObjectAnnotationSparse apply

参数
TAnnotationtype of the annotation
bAutoRemoveif 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.

成员函数说明

◆ AddAnnotation()

template<typename TAnnotation , bool bAutoRemove>
void FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove >::AddAnnotation ( const UObjectBase *  Object,
const TAnnotation &  Annotation 
)
inline

Add an annotation to the annotation list.

If the Annotation is the default, then the annotation is removed.

参数
ObjectObject to annotate.
AnnotationAnnotation to associate with Object.

◆ Find()

template<typename TAnnotation , bool bAutoRemove>
UObject * FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove >::Find ( const TAnnotation &  Annotation)
inline

Find the UObject associated with a given annotation

参数
AnnotationAnnotation to find
返回
Object associated with this annotation or NULL if none found

◆ NotifyUObjectDeleted()

template<typename TAnnotation , bool bAutoRemove>
virtual void FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove >::NotifyUObjectDeleted ( const UObjectBase *  Object,
int32  Index 
)
inlineoverridevirtual

Interface for FUObjectAllocator::FUObjectDeleteListener

参数
Objectobject that has been destroyed
Indexindex of object that is being deleted

重载 FUObjectAnnotationSparse< TAnnotation, bAutoRemove > .

◆ RemoveAnnotation()

template<typename TAnnotation , bool bAutoRemove>
void FUObjectAnnotationSparseSearchable< TAnnotation, bAutoRemove >::RemoveAnnotation ( const UObjectBase *  Object)
inline

Removes an annotation from the annotation list.

参数
ObjectObject to de-annotate.

该类的文档由以下文件生成: