A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
FDlgHelper Class Reference

#include <DlgHelper.h>

Static Public Member Functions

static void AppendSortedSetToArray (const TSet< FName > &InSet, TArray< FName > &OutArray)
 
static FString CleanObjectName (FString Name)
 
static TMap< FName, TArray< FDlgClassAndObject > > ConvertDialogueParticipantsClassesIntoMap (const TArray< UClass * > &Classes)
 
template<typename TEnum >
static bool ConvertEnumToString (const FString &EnumName, TEnum EnumValue, bool bWithNameSpace, FString &OutEnumValue)
 
template<typename TEnum >
static bool ConvertFNameToEnum (FName Name, const FString &EnumName, TEnum &OutEnumValue)
 
template<typename TEnum >
static bool ConvertStringToEnum (const FString &String, const FString &EnumName, TEnum &OutEnumValue)
 
static bool DeleteFile (const FString &PathName, bool bVerbose=true)
 
static bool GetAllChildClassesOf (const UClass *ParentClass, TArray< UClass * > &OutNativeClasses, TArray< UClass * > &OutBlueprintClasses)
 
static bool GetAllClassesImplementingInterface (const UClass *InterfaceClass, TArray< UClass * > &OutNativeClasses, TArray< UClass * > &OutBlueprintClasses)
 
static FString GetClassNameFromObject (const UObject *Object)
 
template<typename SetType >
static TCopyQualifiersFromTo< SetType, typenameSetType::ElementType >::Type * GetFirstSetElement (SetType &Set)
 
static FString GetFullNameFromObject (const UObject *Object)
 
static FName GetFunctionNameForConditionType (EDlgConditionType ConditionType)
 
static FName GetFunctionNameForEventType (EDlgEventType EventType)
 
static TSharedPtr< SDockTab > InvokeTab (TSharedPtr< FTabManager > TabManager, const FTabId &TabID)
 
static bool IsABlueprintClass (const UClass *Class)
 
static bool IsABlueprintObject (const UObject *Object)
 
template<typename ArrayType >
static bool IsArrayEqual (const TArray< ArrayType > &FirstArray, const TArray< ArrayType > &SecondArray)
 
template<typename ArrayType >
static bool IsArrayEqual (const TArray< ArrayType > &FirstArray, const TArray< ArrayType > &SecondArray, std::function< bool(const ArrayType &FirstValue, const ArrayType &SecondValue)> AreValuesEqual)
 
template<typename ArrayType >
static bool IsArrayOfPointersEqual (const TArray< ArrayType * > &FirstArray, const TArray< ArrayType * > &SecondArray)
 
static bool IsClassIgnored (const UClass *Class)
 
static FORCEINLINE bool IsFloatEqual (const float A, const float B)
 
template<typename KeyType , typename ValueType >
static bool IsMapEqual (const TMap< KeyType, ValueType > &FirstMap, const TMap< KeyType, ValueType > &SecondMap)
 
template<typename KeyType , typename ValueType >
static bool IsMapEqual (const TMap< KeyType, ValueType > &FirstMap, const TMap< KeyType, ValueType > &SecondMap, std::function< bool(const ValueType &FirstMapValue, const ValueType &SecondMapValue)> AreValuesEqual)
 
static bool IsObjectAChildOf (const UObject *Object, const UClass *ParentClass)
 
static bool IsObjectImplementingInterface (const UObject *Object, const UClass *InterfaceClass)
 
static FORCEINLINE bool IsPathInProjectDirectory (const FString &Path)
 
static FORCEINLINE bool IsPossiblyAllocatedUObjectPointer (const void *Ptr)
 
template<typename SetType >
static bool IsSetEqual (const TSet< SetType > &FirstSet, const TSet< SetType > &SecondSet)
 
static bool IsValidLowLevel (const UObject *Object)
 
static bool PredicateSortFNameAlphabeticallyAscending (FName A, FName B)
 
static FORCEINLINE int64 RandomInt64 ()
 
static bool RenameFile (const FString &OldPathName, const FString &NewPathName, bool bOverWrite=false, bool bVerbose=true)
 
static void SortDefault (TArray< FName > &OutArray)
 
template<typename ValueType >
static void SortDefault (TMap< FName, ValueType > &Map)
 
static void SortDefault (TSet< FName > &OutSet)
 

Private Types

typedef FDlgHelper Self
 

Detailed Description

General helper methods

Definition at line 218 of file DlgHelper.h.

Member Typedef Documentation

◆ Self

typedef FDlgHelper FDlgHelper::Self
private

Definition at line 220 of file DlgHelper.h.

Member Function Documentation

◆ AppendSortedSetToArray()

static void FDlgHelper::AppendSortedSetToArray ( const TSet< FName > & InSet,
TArray< FName > & OutArray )
inlinestatic

Helper method, used to append a set to an array. Also sort.

Definition at line 468 of file DlgHelper.h.

Here is the caller graph for this function:

◆ CleanObjectName()

FString FDlgHelper::CleanObjectName ( FString Name)
static

Definition at line 104 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ ConvertDialogueParticipantsClassesIntoMap()

TMap< FName, TArray< FDlgClassAndObject > > FDlgHelper::ConvertDialogueParticipantsClassesIntoMap ( const TArray< UClass * > & Classes)
static

Definition at line 252 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ ConvertEnumToString()

template<typename TEnum >
static bool FDlgHelper::ConvertEnumToString ( const FString & EnumName,
TEnum EnumValue,
bool bWithNameSpace,
FString & OutEnumValue )
inlinestatic

Definition at line 329 of file DlgHelper.h.

◆ ConvertFNameToEnum()

template<typename TEnum >
static bool FDlgHelper::ConvertFNameToEnum ( FName Name,
const FString & EnumName,
TEnum & OutEnumValue )
inlinestatic

Definition at line 358 of file DlgHelper.h.

◆ ConvertStringToEnum()

template<typename TEnum >
static bool FDlgHelper::ConvertStringToEnum ( const FString & String,
const FString & EnumName,
TEnum & OutEnumValue )
inlinestatic

Definition at line 344 of file DlgHelper.h.

◆ DeleteFile()

bool FDlgHelper::DeleteFile ( const FString & PathName,
bool bVerbose = true )
static

Definition at line 14 of file DlgHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAllChildClassesOf()

bool FDlgHelper::GetAllChildClassesOf ( const UClass * ParentClass,
TArray< UClass * > & OutNativeClasses,
TArray< UClass * > & OutBlueprintClasses )
static

Definition at line 189 of file DlgHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAllClassesImplementingInterface()

bool FDlgHelper::GetAllClassesImplementingInterface ( const UClass * InterfaceClass,
TArray< UClass * > & OutNativeClasses,
TArray< UClass * > & OutBlueprintClasses )
static

Definition at line 222 of file DlgHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetClassNameFromObject()

static FString FDlgHelper::GetClassNameFromObject ( const UObject * Object)
inlinestatic

Definition at line 235 of file DlgHelper.h.

Here is the caller graph for this function:

◆ GetFirstSetElement()

template<typename SetType >
static TCopyQualifiersFromTo< SetType, typenameSetType::ElementType >::Type * FDlgHelper::GetFirstSetElement ( SetType & Set)
inlinestatic

Definition at line 373 of file DlgHelper.h.

Here is the caller graph for this function:

◆ GetFullNameFromObject()

static FString FDlgHelper::GetFullNameFromObject ( const UObject * Object)
inlinestatic

Definition at line 226 of file DlgHelper.h.

Here is the caller graph for this function:

◆ GetFunctionNameForConditionType()

static FName FDlgHelper::GetFunctionNameForConditionType ( EDlgConditionType ConditionType)
inlinestatic

Definition at line 307 of file DlgHelper.h.

Here is the caller graph for this function:

◆ GetFunctionNameForEventType()

static FName FDlgHelper::GetFunctionNameForEventType ( EDlgEventType EventType)
inlinestatic

Definition at line 286 of file DlgHelper.h.

Here is the caller graph for this function:

◆ InvokeTab()

TSharedPtr< SDockTab > FDlgHelper::InvokeTab ( TSharedPtr< FTabManager > TabManager,
const FTabId & TabID )
static

Try to open tab if it is closed at the last known location. If it already exists, it will draw attention to the tab.

Parameters
TabManagerThe TabManager.
TabIdThe tab identifier.
Returns
The existing or newly spawned tab instance if successful.

Definition at line 90 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ IsABlueprintClass()

bool FDlgHelper::IsABlueprintClass ( const UClass * Class)
static

Definition at line 127 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ IsABlueprintObject()

bool FDlgHelper::IsABlueprintObject ( const UObject * Object)
static

Definition at line 132 of file DlgHelper.cpp.

◆ IsArrayEqual() [1/2]

template<typename ArrayType >
static bool FDlgHelper::IsArrayEqual ( const TArray< ArrayType > & FirstArray,
const TArray< ArrayType > & SecondArray )
inlinestatic

Definition at line 410 of file DlgHelper.h.

Here is the call graph for this function:

◆ IsArrayEqual() [2/2]

template<typename ArrayType >
static bool FDlgHelper::IsArrayEqual ( const TArray< ArrayType > & FirstArray,
const TArray< ArrayType > & SecondArray,
std::function< bool(const ArrayType &FirstValue, const ArrayType &SecondValue)> AreValuesEqual )
inlinestatic

Definition at line 402 of file DlgHelper.h.

Here is the call graph for this function:

◆ IsArrayOfPointersEqual()

template<typename ArrayType >
static bool FDlgHelper::IsArrayOfPointersEqual ( const TArray< ArrayType * > & FirstArray,
const TArray< ArrayType * > & SecondArray )
inlinestatic

Definition at line 417 of file DlgHelper.h.

Here is the call graph for this function:

◆ IsClassIgnored()

bool FDlgHelper::IsClassIgnored ( const UClass * Class)
static

Definition at line 115 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ IsFloatEqual()

static FORCEINLINE bool FDlgHelper::IsFloatEqual ( const float A,
const float B )
inlinestatic

Definition at line 223 of file DlgHelper.h.

Here is the caller graph for this function:

◆ IsMapEqual() [1/2]

template<typename KeyType , typename ValueType >
static bool FDlgHelper::IsMapEqual ( const TMap< KeyType, ValueType > & FirstMap,
const TMap< KeyType, ValueType > & SecondMap )
inlinestatic

Definition at line 440 of file DlgHelper.h.

Here is the call graph for this function:

◆ IsMapEqual() [2/2]

template<typename KeyType , typename ValueType >
static bool FDlgHelper::IsMapEqual ( const TMap< KeyType, ValueType > & FirstMap,
const TMap< KeyType, ValueType > & SecondMap,
std::function< bool(const ValueType &FirstMapValue, const ValueType &SecondMapValue)> AreValuesEqual )
inlinestatic

Definition at line 432 of file DlgHelper.h.

Here is the call graph for this function:

◆ IsObjectAChildOf()

bool FDlgHelper::IsObjectAChildOf ( const UObject * Object,
const UClass * ParentClass )
static

Definition at line 137 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ IsObjectImplementingInterface()

bool FDlgHelper::IsObjectImplementingInterface ( const UObject * Object,
const UClass * InterfaceClass )
static

Definition at line 163 of file DlgHelper.cpp.

Here is the caller graph for this function:

◆ IsPathInProjectDirectory()

static FORCEINLINE bool FDlgHelper::IsPathInProjectDirectory ( const FString & Path)
inlinestatic

Definition at line 224 of file DlgHelper.h.

Here is the caller graph for this function:

◆ IsPossiblyAllocatedUObjectPointer()

static FORCEINLINE bool FDlgHelper::IsPossiblyAllocatedUObjectPointer ( const void * Ptr)
inlinestatic

Definition at line 475 of file DlgHelper.h.

◆ IsSetEqual()

template<typename SetType >
static bool FDlgHelper::IsSetEqual ( const TSet< SetType > & FirstSet,
const TSet< SetType > & SecondSet )
inlinestatic

Definition at line 386 of file DlgHelper.h.

Here is the caller graph for this function:

◆ IsValidLowLevel()

static bool FDlgHelper::IsValidLowLevel ( const UObject * Object)
inlinestatic

Very low level and safe way to check if the object is valid. Kinda slow but safe.

Definition at line 499 of file DlgHelper.h.

◆ PredicateSortFNameAlphabeticallyAscending()

static bool FDlgHelper::PredicateSortFNameAlphabeticallyAscending ( FName A,
FName B )
inlinestatic

Definition at line 446 of file DlgHelper.h.

Here is the caller graph for this function:

◆ RandomInt64()

static FORCEINLINE int64 FDlgHelper::RandomInt64 ( )
inlinestatic

Definition at line 222 of file DlgHelper.h.

Here is the caller graph for this function:

◆ RenameFile()

bool FDlgHelper::RenameFile ( const FString & OldPathName,
const FString & NewPathName,
bool bOverWrite = false,
bool bVerbose = true )
static

Definition at line 45 of file DlgHelper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SortDefault() [1/3]

static void FDlgHelper::SortDefault ( TArray< FName > & OutArray)
inlinestatic

Default sorting function used by all the Dialogue related methods. Sorts alphabetically ascending.

Definition at line 452 of file DlgHelper.h.

Here is the caller graph for this function:

◆ SortDefault() [2/3]

template<typename ValueType >
static void FDlgHelper::SortDefault ( TMap< FName, ValueType > & Map)
inlinestatic

Definition at line 462 of file DlgHelper.h.

◆ SortDefault() [3/3]

static void FDlgHelper::SortDefault ( TSet< FName > & OutSet)
inlinestatic

Definition at line 456 of file DlgHelper.h.


The documentation for this class was generated from the following files: