Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::OwnedId Class Reference

An ID for owned objects. It indicates the owner's ID, an ID local to the owner, and an overall unique ID. More...

#include <Utils.h>

Public Member Functions

GTS_INLINE OwnedId (SubIdType ownerId, SubIdType localId)
 
GTS_INLINE SubIdType localId () const
 
GTS_INLINE SubIdType ownerId () const
 
GTS_INLINE IdType uid () const
 
GTS_INLINE bool operator== (OwnedId const &rhs) const
 
GTS_INLINE bool operator!= (OwnedId const &rhs) const
 

Detailed Description

An ID for owned objects. It indicates the owner's ID, an ID local to the owner, and an overall unique ID.

Member Function Documentation

◆ localId()

GTS_INLINE SubIdType gts::OwnedId::localId ( ) const
inline
Returns
The ID of the object local to its owner.

◆ operator!=()

GTS_INLINE bool gts::OwnedId::operator!= ( OwnedId const &  rhs) const
inline
Returns
True if not equal.

◆ operator==()

GTS_INLINE bool gts::OwnedId::operator== ( OwnedId const &  rhs) const
inline
Returns
True if equal.

◆ ownerId()

GTS_INLINE SubIdType gts::OwnedId::ownerId ( ) const
inline
Returns
The unique ID of the owner object.

◆ uid()

GTS_INLINE IdType gts::OwnedId::uid ( ) const
inline
Returns
The unique ID object.