MUSX Document Model
|
Represents a vector of EntryInfo instances for a given frame, along with computed information. More...
#include <Entries.h>
Classes | |
struct | TupletInfo |
class to track tuplets in the frame More... | |
Public Member Functions | |
EntryFrame (const details::GFrameHold &gfhold, InstCmper staff, MeasCmper measure, LayerIndex layerIndex, bool forWrittenPitch) | |
Constructor function. | |
InstCmper | getStaff () const |
Get the staff for the entry. | |
MeasCmper | getMeasure () const |
Get the measure for the entry. | |
LayerIndex | getLayerIndex () const |
Get the layer index (0..3) of the entry. | |
bool | isForWrittenPitch () const |
Returns if this entry frame was created for written pitch. | |
const std::vector< std::shared_ptr< const EntryInfo > > & | getEntries () const |
Get the entry list. | |
EntryInfoPtr | getFirstInVoice (int voice) const |
Returns the first entry in the specified v1/v2 or null if none. | |
void | addEntry (const std::shared_ptr< const EntryInfo > &entry) |
Add an entry to the list. | |
std::shared_ptr< const EntryFrame > | getNext () const |
Gets the entry frame for the next measure with the same staff and layer. | |
std::shared_ptr< const EntryFrame > | getPrevious () const |
Gets the entry frame for the previous measure with the same staff and layer. | |
![]() | |
virtual | ~Base () noexcept(false)=default |
Virtual destructor for polymorphic behavior. | |
DocumentPtr | getDocument () const |
Gets a reference to the Document. | |
Cmper | getPartId () const |
Gets the partId for this instance (or 0 for score) | |
std::shared_ptr< others::PartDefinition > | getPartDefinition () const |
Gets the others::PartDefinition corresponding to getPartId. | |
ShareMode | getShareMode () const |
Gets the sharing mode for this instance. | |
const SharedNodes & | getUnlinkedNodes () const |
Gets the unlinked nodes for this instance. (Only populated for ShareMode::Partial ) | |
void | addUnlinkedNode (const std::string &nodeName) |
Adds a shared node for this instance. | |
virtual void | integrityCheck () |
Allows a class to determine if it has been properly contructed by the factory and fix issues that it can, such as creating default instances of contained classes. | |
virtual bool | requireAllFields () const |
Specifies if the parser should alert (print or throw) when an unknown xml tag is found for this class. | |
Public Attributes | |
std::vector< TupletInfo > | tupletInfo |
A list of the tuplets in the frame and their calculated starting and ending information. | |
std::shared_ptr< KeySignature > | keySignature |
Additional Inherited Members | |
![]() | |
enum class | ShareMode { All , Partial , None } |
Describes how this instance is shared between part and score. More... | |
using | SharedNodes = std::set< std::string > |
The container type for shared nodes. | |
![]() | |
Base (const DocumentWeakPtr &document, Cmper partId, ShareMode shareMode) | |
Constructs the base class and enforces the static constexpr XmlNodeName. | |
Base & | operator= (const Base &) |
assignment constructor: m_unlinkedNodes is intentionally omitted | |
Represents a vector of EntryInfo instances for a given frame, along with computed information.
Its pointers are owned by EntryInfoPtr
|
explicit |
Constructor function.
gfhold | The details::GFrameHold instance creating this EntryFrame |
staff | The Cmper for the others::Staff of the entry |
measure | The Cmper for the others::Measure of the entry |
layerIndex | The LayerIndex (0..3) of the entry |
forWrittenPitch | If true, the key and clef for each entry are calculated for written pitch rather than concert pitch. |
EntryInfoPtr musx::dom::EntryFrame::getFirstInVoice | ( | int | voice | ) | const |
Returns the first entry in the specified v1/v2 or null if none.
voice | 1 or 2 |
std::shared_ptr< const EntryFrame > musx::dom::EntryFrame::getNext | ( | ) | const |
Gets the entry frame for the next measure with the same staff and layer.
std::shared_ptr< const EntryFrame > musx::dom::EntryFrame::getPrevious | ( | ) | const |
Gets the entry frame for the previous measure with the same staff and layer.
|
inline |
Returns if this entry frame was created for written pitch.
std::shared_ptr<KeySignature> musx::dom::EntryFrame::keySignature |
this can be different than the measure key sig if the staff has independent key signatures
std::vector<TupletInfo> musx::dom::EntryFrame::tupletInfo |
A list of the tuplets in the frame and their calculated starting and ending information.