6#include "Misc/AssertionMacros.h"
7#include "Containers/Array.h"
8#include "Containers/UnrealString.h"
10#include "Math/IntPoint.h"
11#include "Misc/Timespan.h"
12#include "UObject/NameTypes.h"
13#include "Math/Vector2D.h"
14#include "Math/IntRect.h"
15#include "Containers/EnumAsByte.h"
16#include "Math/IntVector.h"
17#include "Math/Vector.h"
18#include "Misc/DateTime.h"
20#include "Math/BoxSphereBounds.h"
21#include "Math/Vector4.h"
22#include "Math/Plane.h"
23#include "Math/Rotator.h"
24#include "Math/Matrix.h"
26#include "Math/TwoVectors.h"
27#include "Math/Transform.h"
29#include "Math/RandomStream.h"
30#include "Misc/NetworkGuid.h"
31#include "Serialization/MemoryWriter.h"
32#include "Serialization/MemoryReader.h"
35
36
84
85
86
87
88
89
90
91
92
93
94
95
100 static_assert(!
sizeof(T),
"Variant trait must be specialized for this type.");
107
108
109
110
111
112
138 Value = MoveTemp(Other.Value);
145
146
147
148
159
160
161
162
163
164
165
166
177
178
179
180
189
190
191
192
193
194
207
208
209
210
211
212
213
214
215
219 Value = MoveTemp(InArray);
232
233
234
235
236
246
247
248
249
250
260
261
262
263
264
267 return ((Type == Other.Type) && (Value == Other.Value));
271
272
273
274
275
278 return ((Type != Other.Type) || (Value != Other.Value));
284
285
286
287
296
297
298
299
300
301
308
309
310
311
312
313
314
315
316
323
324
325
326
327
334
335
336
337
338
345
346
347
348
349
350
351
352
369
370
371
372
373
374
377 return Ar << Variant
.Type << Variant.Value;
391
392
393
394
395
396
397
398
399
400
401
403FORCEINLINE TArray<uint8> FVariant::GetValue<TArray<uint8> >()
const
405 check(Type == EVariantTypes::ByteArray);
412
415template<>
struct TVariantTraits<ANSICHAR>
417 static CONSTEXPR EVariantTypes GetType() {
return EVariantTypes::Ansichar; }
443template<>
struct TVariantTraits<TArray<uint8> >
445 static CONSTEXPR EVariantTypes GetType() {
return EVariantTypes::ByteArray; }
ARK_API FString(const WIDECHAR *Str)
FVariant & operator=(T InValue)
EVariantTypes GetType() const
FVariant(FVariant &&Other)
const TArray< uint8 > & GetBytes() const
FVariant & operator=(const TArray< uint8 > &InArray)
FVariant & operator=(TArray< uint8 > &&InArray)
FVariant(const TArray< uint8 > &InArray)
FVariant & operator=(FVariant &&Other)
bool operator==(const FVariant &Other) const
FVariant(TArray< uint8 > &&InArray)
bool operator!=(const FVariant &Other) const
FVariant & operator=(const FVariant &)=default
FVariant(const FVariant &)=default
FVariant & operator=(const TCHAR *InString)
FVariant(const TCHAR *InString)
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()
static CONSTEXPR EVariantTypes GetType()