Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
TrackId Class Reference

An in-session identifier of track objects across undo states. It does not persist between sessions. More...

#include <Track.h>

Public Member Functions

 TrackId ()
 
 TrackId (long value)
 
bool operator== (const TrackId &other) const
 
bool operator!= (const TrackId &other) const
 
bool operator< (const TrackId &other) const
 

Private Attributes

long mValue
 

Detailed Description

An in-session identifier of track objects across undo states. It does not persist between sessions.

Default constructed value is not equal to the id of any track that has ever been added to a non-temporary TrackList, or (directly or transitively) copied from such.

TrackIds are assigned uniquely across projects.

Definition at line 78 of file Track.h.

Constructor & Destructor Documentation

◆ TrackId() [1/2]

TrackId::TrackId ( )
inline

Definition at line 81 of file Track.h.

81: mValue(-1) {}
long mValue
Definition: Track.h:96

◆ TrackId() [2/2]

TrackId::TrackId ( long  value)
inlineexplicit

Definition at line 82 of file Track.h.

82: mValue(value) {}

Member Function Documentation

◆ operator!=()

bool TrackId::operator!= ( const TrackId other) const
inline

Definition at line 87 of file Track.h.

88 { return mValue != other.mValue; }

References mValue.

◆ operator<()

bool TrackId::operator< ( const TrackId other) const
inline

Definition at line 92 of file Track.h.

93 { return mValue < other.mValue; }

References mValue.

◆ operator==()

bool TrackId::operator== ( const TrackId other) const
inline

Definition at line 84 of file Track.h.

85 { return mValue == other.mValue; }

References mValue.

Member Data Documentation

◆ mValue

long TrackId::mValue
private

Definition at line 96 of file Track.h.

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


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