TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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

◆ ProjectID() [2/2]

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

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

◆ operator!=()

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

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