Verovio
Source code documentation
vrv::ExpansionMap Class Reference

Public Member Functions

virtual void Reset ()
 
bool HasExpansionMap ()
 Check if m_expansionMap has been filled.
 
ObjectExpand (Expansion *expansion, xsdAnyURI_List &existingList, Object *prevSection, xsdAnyURI_List &deletionList, bool deleteList)
 Expand expansion recursively.
 
std::vector< std::string > GetExpansionIDsForElement (const std::string &xmlId)
 
void ToJson (std::string &output)
 Write the currentexpansionMap to a JSON string.
 
void GenerateExpansionFor (Score *score)
 Generate an expan for the score analysing the repeats and endings.
 
Constructors, destructors, reset methods

Reset method resets all attribute classes

 ExpansionMap ()
 
virtual ~ExpansionMap ()
 
Setter and getter for the generating attempt flag
void SetProcessed (bool isProcessed)
 
bool IsProcessed ()
 

Static Public Member Functions

Methods to check if a measure yields a repeat start or end
static bool IsRepeatStart (Measure *measure)
 
static bool IsRepeatEnd (Measure *measure)
 
static bool IsNextRepeatStart (Measure *measure)
 
static bool IsPreviousRepeatEnd (Measure *measure)
 

Public Attributes

std::map< std::string, std::vector< std::string > > m_map
 The expansion map indicates which xmlId has been repeated (expanded) elsewhere.
 

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