UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NNE.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Algo/RemoveIf.h"
8#include "NNERuntime.h"
9#include "NNEStatus.h"
11
13
14namespace UE::NNE
15{
18
28
36
43
53
62 template<class T>
63 TWeakInterfacePtr<T> GetRuntime(const FString& Name)
64 {
66
67 T* RuntimePtr = Cast<T>(Runtime.Get());
68
70 }
71
77 template<class T>
79 {
81 Result.SetNum(Algo::RemoveIf(Result, [] (const FString &RuntimeName)
82 {
83 return !GetRuntime<T>(RuntimeName).IsValid();
84 }));
85
86 return Result;
87 }
88}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
Definition Array.h:670
int32 RemoveIf(RangeType &Range, Predicate Pred)
Definition RemoveIf.h:21
Definition NNE.cpp:12
EUnregisterRuntimeStatus UnregisterRuntime(TWeakInterfacePtr< INNERuntime > Runtime)
Definition NNE.cpp:92
TWeakInterfacePtr< INNERuntime > GetRuntime(const FString &Name)
Definition NNE.cpp:102
TArray< FString > GetAllRuntimeNames()
Definition NNE.cpp:97
EResultStatus
Definition NNEStatus.h:11
ERegisterRuntimeStatus RegisterRuntime(TWeakInterfacePtr< INNERuntime > Runtime)
Definition NNE.cpp:83
Definition WeakInterfacePtr.h:18