34 if (mBody1ID != inRHS.mBody1ID)
35 return mBody1ID < inRHS.mBody1ID;
40 if (mBody2ID != inRHS.mBody2ID)
41 return mBody2ID < inRHS.mBody2ID;
61static_assert(
alignof(
SubShapeIDPair) == 4,
"Assuming 4 byte aligned");
73 inline size_t operator () (
const JPH::SubShapeIDPair &inRHS)
const
75 return static_cast<size_t>(inRHS.GetHash());
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Definition: Core.h:372
#define JPH_SUPPRESS_WARNINGS_STD_END
Definition: Core.h:384
std::uint64_t uint64
Definition: Core.h:443
#define JPH_NAMESPACE_END
Definition: Core.h:367
std::uint32_t uint32
Definition: Core.h:442
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
JPH_NAMESPACE_BEGIN uint64 HashBytes(const void *inData, uint inSize, uint64 inSeed=0xcbf29ce484222325UL)
Definition: HashCombine.h:15
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition: Memory.h:29
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition: BodyID.h:13
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition: SubShapeID.h:23
Type GetValue() const
Get the value of the path to the sub shape ID.
Definition: SubShapeID.h:52
A pair of bodies and their sub shape ID's. Can be used as a key in a map to find a contact point.
Definition: SubShapeIDPair.h:15
bool operator==(const SubShapeIDPair &inRHS) const
Equality operator.
Definition: SubShapeIDPair.h:26
const SubShapeID & GetSubShapeID2() const
Definition: SubShapeIDPair.h:49
uint64 GetHash() const
Definition: SubShapeIDPair.h:51
JPH_OVERRIDE_NEW_DELETE SubShapeIDPair()=default
Constructor.
const BodyID & GetBody1ID() const
Definition: SubShapeIDPair.h:46
SubShapeIDPair(const BodyID &inBody1ID, const SubShapeID &inSubShapeID1, const BodyID &inBody2ID, const SubShapeID &inSubShapeID2)
Definition: SubShapeIDPair.h:21
SubShapeIDPair(const SubShapeIDPair &)=default
SubShapeIDPair & operator=(const SubShapeIDPair &)=default
const SubShapeID & GetSubShapeID1() const
Definition: SubShapeIDPair.h:47
bool operator<(const SubShapeIDPair &inRHS) const
Less than operator, used to consistently order contact points for a deterministic simulation.
Definition: SubShapeIDPair.h:32
const BodyID & GetBody2ID() const
Definition: SubShapeIDPair.h:48
static JPH_INLINE UVec4 sLoadInt4(const uint32 *inV)
Load 4 ints from memory.
Definition: UVec4.inl:78
Definition: Reference.h:204