5#include "Containers/Array.h"
6#include "Containers/ArrayView.h"
7#include "Containers/ContainersFwd.h"
9#include "HAL/Platform.h"
10#include "Math/NumericLimits.h"
11#include "Misc/AssertionMacros.h"
12#include "UObject/NameBatchSerialization.h"
13#include "UObject/NameTypes.h"
14#include "UObject/UnrealNames.h"
19
20
47 return *
reinterpret_cast<
const FMappedName*>(&MinimalName);
99 return Names[GetIndex()].ToName(GetNumber());
114
115
121 return NameEntries.Num();
128 check(MappedName.GetType() == NameMapType);
129 check(MappedName.GetIndex() < uint32(NameEntries.Num()));
131 return NameEntries[MappedName.GetIndex()].ToName(MappedName.GetNumber());
136 check(MappedName.GetType() == NameMapType);
139 if (Index < uint32(NameEntries.Num()))
141 OutName = NameEntries[MappedName.GetIndex()].ToName(MappedName.GetNumber());
FORCEINLINE FName MinimalNameToName(FMinimalName InName)
static constexpr uint32 TypeMask
bool operator!=(FMappedName Other) const
static FMappedName FromMinimalName(const FMinimalName &MinimalName)
static constexpr uint32 TypeShift
FMappedName(const uint32 InIndex, const uint32 InNumber)
static bool IsResolvedToMinimalName(const FMinimalName &MinimalName)
FMinimalName ToUnresolvedMinimalName() const
static FName SafeMinimalNameToName(const FMinimalName &MinimalName)
FName ResolveName(TConstArrayView< FDisplayNameEntryId > Names) const
static constexpr uint32 InvalidIndex
static constexpr uint32 IndexBits
static FMappedName Create(const uint32 InIndex, const uint32 InNumber, EType InType)
static constexpr uint32 IndexMask
friend FMinimalName NameToMinimalName(FName InName)
FMinimalName GetMinimalName(const FMappedName &MappedName) const
FName GetName(const FMappedName &MappedName) const
void Load(FArchive &Ar, FMappedName::EType NameMapType)
bool TryGetName(const FMappedName &MappedName, FName &OutName) const
TArray< FDisplayNameEntryId > NameEntries
FMappedName::EType NameMapType