MNX Document Model
Loading...
Searching...
No Matches
mnx::util::StaffKey Struct Reference

Identifies a specific staff within a specific part. More...

#include <LayoutHelpers.h>

Public Member Functions

bool operator== (const StaffKey &o) const noexcept
 Equality comparison.
 

Public Attributes

std::string partId
 The ID of the part.
 
int staffNo = 1
 The 1-based staff number within the part.
 

Detailed Description

Identifies a specific staff within a specific part.

A StaffKey uniquely identifies a part staff by pairing the part ID with the 1-based staff index within that part. It is used to reason about layout–part correspondence when validating or selecting conventional score layouts.

Member Function Documentation

◆ operator==()

bool mnx::util::StaffKey::operator== ( const StaffKey o) const
inlinenoexcept

Equality comparison.

Two StaffKey values are equal if they refer to the same part ID and the same staff number within that part.