UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Named.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7namespace uLang
8{
9
14class CNamed
15{
16public:
17
18 // Common Methods
19
23 ULANG_FORCEINLINE CNamed & operator=(const CNamed & Source) { _Name = Source._Name; return *this; }
24
25 // Converter Methods
26
27 ULANG_FORCEINLINE operator const CSymbol& () const { return _Name; }
28
29 // Comparison Methods - used for sorting etc.
30
32 ULANG_FORCEINLINE bool operator==(const CSymbol& Name) const { return _Name == Name; }
33 ULANG_FORCEINLINE bool operator!=(const CSymbol& Name) const { return _Name != Name; }
34 ULANG_FORCEINLINE bool operator<=(const CSymbol& Name) const { return _Name <= Name; }
35 ULANG_FORCEINLINE bool operator>=(const CSymbol& Name) const { return _Name >= Name; }
36 ULANG_FORCEINLINE bool operator<(const CSymbol& Name) const { return _Name < Name; }
37 ULANG_FORCEINLINE bool operator>(const CSymbol& Name) const { return _Name > Name; }
38
39 // Accessor Methods
40
41 ULANG_FORCEINLINE const CSymbol& GetName() const { return _Name; }
43
45 ULANG_FORCEINLINE const char* AsNameCString() const { return _Name.AsCString(); }
47
48protected:
49
50 // Data Members
51
53
54}; // CNamed
55
56}
#define ULANG_FORCEINLINE
Definition Common.h:188
Definition Named.h:15
ULANG_FORCEINLINE CNamed(const CSymbol &Name)
Definition Named.h:21
ULANG_FORCEINLINE CNamed & operator=(const CNamed &Source)
Definition Named.h:23
ULANG_FORCEINLINE bool operator==(const CSymbol &Name) const
Definition Named.h:32
ULANG_FORCEINLINE bool operator>=(const CSymbol &Name) const
Definition Named.h:35
ULANG_FORCEINLINE bool operator>(const CSymbol &Name) const
Definition Named.h:37
ULANG_FORCEINLINE CUTF8StringView AsNameStringView() const
Definition Named.h:44
ULANG_FORCEINLINE UTF8Char AsNameFirstByte() const
Definition Named.h:46
ULANG_FORCEINLINE EEquate Compare(const CSymbol &Name) const
Definition Named.h:31
ULANG_FORCEINLINE bool operator<(const CSymbol &Name) const
Definition Named.h:36
ULANG_FORCEINLINE bool operator<=(const CSymbol &Name) const
Definition Named.h:34
ULANG_FORCEINLINE SymbolId GetNameId() const
Definition Named.h:42
ULANG_FORCEINLINE const CSymbol & GetName() const
Definition Named.h:41
CSymbol _Name
Definition Named.h:52
ULANG_FORCEINLINE CNamed(const CNamed &Source)
Definition Named.h:22
ULANG_FORCEINLINE bool operator!=(const CSymbol &Name) const
Definition Named.h:33
ULANG_FORCEINLINE const char * AsNameCString() const
Definition Named.h:45
ULANG_FORCEINLINE CNamed()
Definition Named.h:20
Symbol representing a text string with an associated id.
Definition Symbol.h:98
ULANG_FORCEINLINE EEquate Compare(const CSymbol &Other) const
Definition Symbol.h:111
ULANG_FORCEINLINE SymbolId GetId() const
Definition Symbol.h:102
ULANG_FORCEINLINE UTF8Char FirstByte() const
Definition Symbol.h:109
ULANG_FORCEINLINE CUTF8StringView AsStringView() const
Definition Symbol.h:107
ULANG_FORCEINLINE const char * AsCString() const
Definition Symbol.h:108
Definition UTF8StringView.h:15
Definition VVMEngineEnvironment.h:23
uint32_t SymbolId
A unique id representing a symbol.
Definition Symbol.h:18
uint8_t UTF8Char
UTF-8 octet.
Definition Unicode.h:20
EEquate
Definition Common.h:367