本文整理汇总了C++中FReferenceCollector类的典型用法代码示例。如果您正苦于以下问题:C++ FReferenceCollector类的具体用法?C++ FReferenceCollector怎么用?C++ FReferenceCollector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FReferenceCollector类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddReferencedObjects
void FGridWidget::AddReferencedObjects( FReferenceCollector& Collector )
{
Collector.AddReferencedObject( LevelGridMaterial );
Collector.AddReferencedObject( LevelGridMaterialInst );
Collector.AddReferencedObject( LevelGridMaterial2 );
Collector.AddReferencedObject( LevelGridMaterialInst2 );
}
示例2: AddReferencedObjects
/** FGCObject interface */
void FEdModeHaste::AddReferencedObjects(FReferenceCollector& Collector)
{
// Call parent implementation
FEdMode::AddReferencedObjects(Collector);
Collector.AddReferencedObject(BrushMeshComponent);
Collector.AddReferencedObject(UISettings);
}
示例3:
void FTransaction::FObjectRecord::AddReferencedObjects( FReferenceCollector& Collector )
{
Collector.AddReferencedObject( Object );
for( int32 ObjIndex = 0; ObjIndex < ReferencedObjects.Num(); ObjIndex++ )
{
Collector.AddReferencedObject( ReferencedObjects[ ObjIndex ] );
}
}
示例4: AddReferencedObjects
//------------------------------------------------------------------------------
void FBlueprintNodeTemplateCache::AddReferencedObjects(FReferenceCollector& Collector)
{
for (auto& TemplateEntry : NodeTemplateCache)
{
Collector.AddReferencedObject(TemplateEntry.Value);
}
Collector.AddReferencedObjects(TemplateOuters);
}
示例5: AddReferencedObjects
void FScriptObjectReferencer::AddReferencedObjects(FReferenceCollector& Collector)
{
Collector.AllowEliminatingReferences(false);
for (auto Object : ScriptCreatedObjects)
{
Collector.AddReferencedObject(Object);
}
Collector.AllowEliminatingReferences(true);
}
示例6: AddReferencedObjects
void FPreviewScene::AddReferencedObjects( FReferenceCollector& Collector )
{
for( int32 Index = 0; Index < Components.Num(); Index++ )
{
Collector.AddReferencedObject( Components[ Index ] );
}
Collector.AddReferencedObject( DirectionalLight );
Collector.AddReferencedObject( PreviewWorld );
}
示例7: AddReferencedObjects
void FSignificanceManagerModule::AddReferencedObjects( FReferenceCollector& Collector )
{
for (TPair<const UWorld*, USignificanceManager*>& WorldSignificanceManagerPair : WorldSignificanceManagers)
{
Collector.AddReferencedObject(WorldSignificanceManagerPair.Value, WorldSignificanceManagerPair.Key);
}
UClass* SignificanceManagerClassPtr = *SignificanceManagerClass;
Collector.AddReferencedObject(SignificanceManagerClassPtr);
SignificanceManagerClass = SignificanceManagerClassPtr; // Since pointer can be modified by AddReferencedObject
}
示例8: AddReferencedObjects
void UFactory::AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector)
{
UFactory* This = CastChecked<UFactory>(InThis);
UClass* SupportedClass = *This->SupportedClass;
UClass* ContextClass = *This->ContextClass;
Collector.AddReferencedObject( SupportedClass, This );
Collector.AddReferencedObject( ContextClass, This );
Super::AddReferencedObjects( This, Collector );
}
示例9: AddReferencedObjects
// FGCObject interface
void FDeferRegisterStaticComponents::AddReferencedObjects(FReferenceCollector& Collector)
{
for (TMap<AActor*, TArray<FDeferredComponentInfo> >::TIterator It(ComponentsToRegister); It; ++It)
{
Collector.AddReferencedObject(It.Key());
TArray<FDeferredComponentInfo>& Components = It.Value();
for (int32 ComponentIndex = 0; ComponentIndex < Components.Num(); ++ComponentIndex)
{
Collector.AddReferencedObject(Components[ComponentIndex].Component);
}
}
}
示例10: AddReferencedObjects
void FDestructibleMeshEditorViewportClient::AddReferencedObjects( FReferenceCollector& Collector )
{
for (int32 i=0; i < SelectedChunks.Num(); ++i)
{
Collector.AddReferencedObject(SelectedChunks[i]);
}
for (int32 i=0; i < UnusedProxies.Num(); ++i)
{
Collector.AddReferencedObject(UnusedProxies[i]);
}
}
示例11: AddReferencedObjects
void FObjectReferencer::AddReferencedObjects(FReferenceCollector& Collector)
{
// don't want the collector to NULL pointers to UObject(s) marked for destruction
Collector.AllowEliminatingReferences(false);
for (auto& Iterator : ObjectRefs.GetAnnotationMap())
{
// annotations with a ref count of zero shouldn't be in the map
check(Iterator.Value.Count > 0);
UObjectBase* Object = const_cast<UObjectBase*>(Iterator.Key);
Collector.AddReferencedObject(Object);
}
Collector.AllowEliminatingReferences(true);
}
示例12: AddReferencedObjects
void FLegacySlateFontInfoCache::AddReferencedObjects(FReferenceCollector& Collector)
{
for(auto& FallbackFontEntry : FallbackFonts)
{
const UFontBulkData* TmpPtr = FallbackFontEntry.Value->BulkDataPtr;
Collector.AddReferencedObject(TmpPtr);
}
if(LastResortFont.IsValid())
{
const UFontBulkData* TmpPtr = LastResortFont->BulkDataPtr;
Collector.AddReferencedObject(TmpPtr);
}
}
示例13: AddReferencedObjects
void FLegacySlateFontInfoCache::AddReferencedObjects(FReferenceCollector& Collector)
{
if(FallbackFontData.IsValid())
{
const UFontBulkData* TmpPtr = FallbackFontData->BulkDataPtr;
Collector.AddReferencedObject(TmpPtr);
}
if(LastResortFontData.IsValid())
{
const UFontBulkData* TmpPtr = LastResortFontData->BulkDataPtr;
Collector.AddReferencedObject(TmpPtr);
}
}
示例14: AddReferencedObjects
void UPolys::AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector)
{
UPolys* This = CastChecked<UPolys>(InThis);
// Let GC know that we're referencing some Actor and Property objects
for( TTransArray<FPoly>::TConstIterator ElementIt(This->Element); ElementIt; ++ElementIt )
{
FPoly PolyElement = *ElementIt;
Collector.AddReferencedObject( PolyElement.Actor, This );
Collector.AddReferencedObject( PolyElement.Material, This );
}
UObject* ElementOwner = This->Element.GetOwner();
Collector.AddReferencedObject( ElementOwner, This );
Super::AddReferencedObjects(This, Collector);
}
示例15: AddReferencedObjects
void FStandaloneCompositeFont::AddReferencedObjects(FReferenceCollector& Collector)
{
for(FTypefaceEntry& TypefaceEntry : DefaultTypeface.Fonts)
{
Collector.AddReferencedObject(TypefaceEntry.Font.BulkDataPtr);
}
for(FCompositeSubFont& SubFont : SubTypefaces)
{
for(FTypefaceEntry& TypefaceEntry : SubFont.Typeface.Fonts)
{
Collector.AddReferencedObject(TypefaceEntry.Font.BulkDataPtr);
}
}
}