Class podio::ObjectID

class ObjectID

Public Functions

bool operator==(const ObjectID&) const noexcept = default

index and collectionID uniquely defines the object.

inline std::strong_ordering operator<=>(const ObjectID &other) const noexcept

Provide an order solely for use in ordered containers.

Order ObjectIDs by collectionID first and then by their index within the collection.

Public Members

int index = {untracked}

index of object in collection

uint32_t collectionID = {static_cast<uint32_t>(untracked)}

ID of the collection.

Public Static Attributes

static const int untracked = -1

not part of a collection

static const int invalid = -2

invalid or non-available object