5#if WITH_VERSE_VM || defined(__INTELLISENSE__)
28 return Value.Get().Follow();
37 return Value.Get().Follow();
42 if (
Value.Get().IsRoot() &&
Other.Value.Get().IsRoot())
44 return this == &
Other;
62inline bool VValue::IsInt()
const
67inline VInt VValue::AsInt()
const
72inline bool VValue::IsUint32()
const
74 return IsInt() && AsInt().IsUint32();
77inline uint32 VValue::AsUint32()
const
79 return AsInt().AsUint32();
82inline VValue VValue::FromBool(
bool Bool)
107inline bool VValue::IsLogic()
const
112inline bool VValue::AsBool()
const
118inline bool VValue::IsEnumerator()
const
123template <
typename ObjectType>
124bool VValue::IsCellOfType()
const
129template <
typename ObjectType>
130ObjectType& VValue::StaticCast()
const
132 return AsCell().StaticCast<ObjectType>();
135template <
typename ObjectType>
136ObjectType* VValue::DynamicCast()
const
138 return IsCell() ?
AsCell().DynamicCast<ObjectType>() : nullptr;
150 return ::GetTypeHash(VFloat::NaN().AsDouble());
156 else if (
Value.IsInt())
160 else if (
Value.IsLogic())
164 else if (
Value.IsCell())
168 else if (
Value.IsUObject())
170 return ::GetTypeHash(
Value.AsUObject());
172 else if (
Value.IsChar())
174 return ::GetTypeHash(
Value.AsChar());
176 else if (
Value.IsChar32())
178 return ::GetTypeHash(
Value.AsChar32());
199inline VValue VValue::Melt(FAllocationContext
Context, VValue
Value)
201 if (
Value.IsCell() &&
Value.AsCell().IsDeeplyMutable())
210 if (
Value.IsPlaceholder())
212 V_DIE(
"Freezing does not support non-concrete values!");
214 else if (
Value.IsCell() &&
Value.AsCell().IsDeeplyMutable())
#define checkSlow(expr)
Definition AssertionMacros.h:332
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ToType BitCast(const FromType &From)
Definition TypeCompatibleBytes.h:167
uint32 PointerHash(const void *Key)
Definition TypeHash.h:91
#define VERSE_UNREACHABLE()
Definition VVMUnreachable.h:8
#define V_FORCEINLINE
Definition VVMVerse.h:30
uint32 GetTypeHash(const FKey &Key)
Definition BlackboardKey.h:35
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition ObjectPtr.h:426