TracktionEngine
|
An ID representing one of the items in a Project. More...
Public Member Functions | |
ProjectItemID () noexcept=default | |
ProjectItemID (const ProjectItemID &) noexcept=default | |
ProjectItemID & | operator= (const ProjectItemID &) noexcept=default |
~ProjectItemID () noexcept=default | |
ProjectItemID (const juce::String &stringID) noexcept | |
takes a string created by toString(). More... | |
ProjectItemID (int itemID, int projectID) noexcept | |
Creates an ID from the . More... | |
ProjectItemID | withNewProjectID (int newProjectID) const |
int | getProjectID () const |
Returns the ID of the project this item belongs to. More... | |
int | getItemID () const |
Returns the ID of the item within the project. More... | |
int64_t | getRawID () const noexcept |
Returns a combined ID as an integer, useful for creating hashes. More... | |
bool | isValid () const noexcept |
bool | isInvalid () const noexcept |
juce::String | toString () const |
juce::String | toStringSuitableForFilename () const |
bool | operator== (ProjectItemID other) const |
bool | operator!= (ProjectItemID other) const |
bool | operator< (ProjectItemID other) const |
Static Public Member Functions | |
static ProjectItemID | createNewID (int projectID) noexcept |
Generates a new ID for a given project. More... | |
static ProjectItemID | fromProperty (const juce::ValueTree &, const juce::Identifier &) |
An ID representing one of the items in a Project.
A ProjectItemID consists of two parts: the ID of the project it belongs to, and an ID of the item within that project.
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
explicitnoexcept |
takes a string created by toString().
|
noexcept |
Creates an ID from the .
|
defaultnoexcept |
|
staticnoexcept |
Generates a new ID for a given project.
Referenced by tracktion::engine::benchmark_utilities::loadEditFromValueTree().
|
static |
ProjectItemID tracktion::engine::ProjectItemID::withNewProjectID | ( | int | newProjectID | ) | const |
int tracktion::engine::ProjectItemID::getProjectID | ( | ) | const |
Returns the ID of the project this item belongs to.
int tracktion::engine::ProjectItemID::getItemID | ( | ) | const |
Returns the ID of the item within the project.
Referenced by tracktion::engine::WaveCompManager::getBaseTakeHash().
|
noexcept |
Returns a combined ID as an integer, useful for creating hashes.
|
noexcept |
|
noexcept |
juce::String tracktion::engine::ProjectItemID::toString | ( | ) | const |
juce::String tracktion::engine::ProjectItemID::toStringSuitableForFilename | ( | ) | const |
bool tracktion::engine::ProjectItemID::operator== | ( | ProjectItemID | other | ) | const |
bool tracktion::engine::ProjectItemID::operator!= | ( | ProjectItemID | other | ) | const |
bool tracktion::engine::ProjectItemID::operator< | ( | ProjectItemID | other | ) | const |