MUSX Document Model
|
Specialization for others::StaffUsed that adds methods for processing the array as a whole. More...
#include <MusxInstance.h>
Public Member Functions | |
MusxInstance< others::Staff > | getStaffInstanceAtIndex (Cmper index) const |
Returns the others::Staff instance (without any staff styles applied) at a specified index of iuArray or nullptr if not found. | |
std::optional< size_t > | getIndexForStaff (StaffCmper staffId) const |
Returns the 0-based index of the StaffCmper or std::nullopt if not found. | |
![]() | |
MusxInstanceListBase (const std::weak_ptr< Document > &document, Cmper partId) | |
Default constructor. | |
Cmper | getRequestedPartId () const |
Gets the part id that was used to create this list. | |
std::shared_ptr< Document > | getDocument () const |
Gets the document that was used to create this list. | |
Specialization for others::StaffUsed that adds methods for processing the array as a whole.
std::optional< size_t > musx::dom::MusxInstanceList< others::StaffUsed >::getIndexForStaff | ( | StaffCmper | staffId | ) | const |
Returns the 0-based index of the StaffCmper or std::nullopt if not found.
staffId | The others::Staff cmper value to find. |
MusxInstance< others::Staff > musx::dom::MusxInstanceList< others::StaffUsed >::getStaffInstanceAtIndex | ( | Cmper | index | ) | const |
Returns the others::Staff instance (without any staff styles applied) at a specified index of iuArray or nullptr if not found.
index | The 0-based index to find. |