40#define UE_BONE_INDEX_COMPARE_OPERATORS(LhsType, RhsType) \
41 inline friend bool operator==(LhsType Lhs, RhsType Rhs) { return GetIntFromComp(Lhs) == GetIntFromComp(Rhs); } \
42 inline friend bool operator>(LhsType Lhs, RhsType Rhs) { return GetIntFromComp(Lhs) > GetIntFromComp(Rhs); } \
43 inline friend bool operator>=(LhsType Lhs, RhsType Rhs) { return GetIntFromComp(Lhs) >= GetIntFromComp(Rhs); } \
44 inline friend bool operator<(LhsType Lhs, RhsType Rhs) { return GetIntFromComp(Lhs) < GetIntFromComp(Rhs); } \
45 inline friend bool operator<=(LhsType Lhs, RhsType Rhs) { return GetIntFromComp(Lhs) <= GetIntFromComp(Rhs); } \
47#if !PLATFORM_COMPILER_HAS_GENERATED_COMPARISON_OPERATORS
48 #define UE_BONE_INDEX_COMPARE_OPERATORS_INVERTED UE_BONE_INDEX_COMPARE_OPERATORS(const int32, const Type&)
50 #define UE_BONE_INDEX_COMPARE_OPERATORS_INVERTED
53#define UE_BONE_INDEX_OPERATORS(Type) \
54 UE_BONE_INDEX_COMPARE_OPERATORS(const Type&, const Type&) \
55 UE_BONE_INDEX_COMPARE_OPERATORS(const Type&, const int32) \
56 UE_BONE_INDEX_COMPARE_OPERATORS_INVERTED \
57 Type& operator++() { ++BoneIndex; return *this; } \
58 Type& operator--() { --BoneIndex; return *this; } \
59 Type& operator=(const Type& Rhs) { BoneIndex = Rhs.BoneIndex; return *this; }
85template <
typename ValueType>
int32 GetIntFromComp(const int32 InComp)
Definition BoneIndices.h:30
#define UE_BONE_INDEX_OPERATORS(Type)
Definition BoneIndices.h:53
uint16 FBoneIndexType
Definition BoneIndices.h:7
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
U16 Index
Definition radfft.cpp:71
Definition BoneIndices.h:11
friend uint32 GetTypeHash(const FBoneIndexBase &Index)
Definition BoneIndices.h:24
FBoneIndexBase()
Definition BoneIndices.h:12
int32 BoneIndex
Definition BoneIndices.h:27
int32 GetInt() const
Definition BoneIndices.h:14
bool IsValid() const
Definition BoneIndices.h:18
bool IsRootBone() const
Definition BoneIndices.h:16
Definition BoneIndices.h:63
FCompactPoseBoneIndex(int32 InBoneIndex)
Definition BoneIndices.h:65
Definition BoneIndices.h:71
FMeshPoseBoneIndex(int32 InBoneIndex)
Definition BoneIndices.h:73
Definition BoneIndices.h:79
FSkeletonPoseBoneIndex(int32 InBoneIndex)
Definition BoneIndices.h:81
Definition BoneIndices.h:87
static uint32 GetKeyHash(FCompactPoseBoneIndex const &Key)
Definition BoneIndices.h:89
static bool Matches(FCompactPoseBoneIndex const &A, FCompactPoseBoneIndex const &B)
Definition BoneIndices.h:90
static FCompactPoseBoneIndex GetSetKey(TPair< FCompactPoseBoneIndex, ValueType > const &Element)
Definition BoneIndices.h:88