TracktionEngine
Loading...
Searching...
No Matches
engine::ProjectID Class Reference

A strongly-typed wrapper for a project's numeric ID. More...

#include <tracktion_ProjectItemID.h>

Public Member Functions

 ProjectID () noexcept=default
 ProjectID (int rawID) noexcept
int toInt () const noexcept
bool isValid () const noexcept
bool operator== (ProjectID o) const noexcept
bool operator!= (ProjectID o) const noexcept

Detailed Description

A strongly-typed wrapper for a project's numeric ID.

Project IDs are opaque identity tokens used only for equality comparisons and lookup — they are never used in arithmetic or as array indices.

Constructor & Destructor Documentation

◆ ProjectID() [1/2]

engine::ProjectID::ProjectID ( )
defaultnoexcept

Referenced by operator!=(), operator==(), and ProjectID().

◆ ProjectID() [2/2]

engine::ProjectID::ProjectID ( int rawID)
explicitnoexcept

References ProjectID().

Member Function Documentation

◆ toInt()

int engine::ProjectID::toInt ( ) const
noexcept

◆ isValid()

bool engine::ProjectID::isValid ( ) const
noexcept

◆ operator==()

bool engine::ProjectID::operator== ( ProjectID o) const
noexcept

References ProjectID().

◆ operator!=()

bool engine::ProjectID::operator!= ( ProjectID o) const
noexcept

References ProjectID().


The documentation for this class was generated from the following file: