gwnavruntime/base/guidcompound.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_GuidCompound_H
10 #define Navigation_GuidCompound_H
26 KY_INLINE
const KyGuid& GetMainGuid()
const {
return m_guids.GetCount() == 0 ?
KyGuid::GetDefaultGuid() : m_guids.GetValues()[0]; }
28 bool operator<(
const GuidCompound& other)
const;
30 bool AreGuidsEqual(
const GuidCompound& other)
const;
32 bool operator==(
const GuidCompound& other)
const {
return AreGuidsEqual(other) && m_timeStamp == other.m_timeStamp; }
34 bool operator!=(
const GuidCompound& other)
const {
return !operator==(other); }
38 KY_INLINE
KyUInt32 GetKyGuidCount()
const {
return m_guids.GetCount(); }
40 KY_INLINE
const KyGuid& GetKyGuid(
KyUInt32 index)
const {
return m_guids.GetValues()[index]; }
42 bool DoesContainAllGuidsOfGuidCompound(
const Kaim::GuidCompound& other)
const;
45 BlobArray<KyGuid> m_guids;
51 SwapEndianness(e,
self.m_guids);
52 SwapEndianness(e,
self.m_timeStamp);
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
static const KyGuid & GetDefaultGuid()
Returns the default KyGuid value.