MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::RepeatList Class Reference

#include <repeatlist.h>

Inheritance diagram for Ms::RepeatList:
Inheritance graph
[legend]
Collaboration diagram for Ms::RepeatList:
Collaboration graph
[legend]

Public Member Functions

 RepeatList (Score *s)
 
 RepeatList (const RepeatList &)=delete
 
RepeatListoperator= (const RepeatList &)=delete
 
 ~RepeatList ()
 
void update (bool expand)
 
void setScoreChanged ()
 
const Scorescore () const
 
int utick2tick (int tick) const
 
int tick2utick (int tick) const
 
void dump () const
 
int utime2utick (qreal) const
 
qreal utick2utime (int) const
 
void updateTempo ()
 
int ticks () const
 

Private Member Functions

void preProcessVoltas ()
 
std::map< Volta *, Measure * >::const_iterator searchVolta (Measure *const) const
 
void unwindSection (Measure *const fm, Measure *const em)
 
MeasurefindStartRepeat (Measure *const) const
 
int findStartFromRepeatCount (Measure *const startFrom) const
 
bool isFinalPlaythrough (Measure *const measure, QList< RepeatSegment *>::const_iterator repeatSegmentIt) const
 
void unwind ()
 
void flatten ()
 Make this repeat list flat (don't expand repeats) More...
 

Private Attributes

Score_score
 
unsigned idx1
 
unsigned idx2
 
bool _expanded = false
 
bool _scoreChanged = true
 
std::map< Volta *, Measure * > _voltaRanges
 
std::set< Jump * > _jumpsTaken
 

Constructor & Destructor Documentation

◆ RepeatList() [1/2]

Ms::RepeatList::RepeatList ( Score s)

◆ RepeatList() [2/2]

Ms::RepeatList::RepeatList ( const RepeatList )
delete

◆ ~RepeatList()

Ms::RepeatList::~RepeatList ( )

Member Function Documentation

◆ dump()

void Ms::RepeatList::dump ( ) const

◆ findStartFromRepeatCount()

int Ms::RepeatList::findStartFromRepeatCount ( Measure *const  startFrom) const
private

◆ findStartRepeat()

Measure * Ms::RepeatList::findStartRepeat ( Measure * const  measure) const
private

◆ flatten()

void Ms::RepeatList::flatten ( )
private

Make this repeat list flat (don't expand repeats)

◆ isFinalPlaythrough()

bool Ms::RepeatList::isFinalPlaythrough ( Measure *const  measure,
QList< RepeatSegment *>::const_iterator  repeatSegmentIt 
) const
private

◆ operator=()

RepeatList& Ms::RepeatList::operator= ( const RepeatList )
delete

◆ preProcessVoltas()

void Ms::RepeatList::preProcessVoltas ( )
private

◆ score()

const Score* Ms::RepeatList::score ( ) const
inline

◆ searchVolta()

std::map< Volta *, Measure * >::const_iterator Ms::RepeatList::searchVolta ( Measure * const  measure) const
private

◆ setScoreChanged()

void Ms::RepeatList::setScoreChanged ( )
inline

◆ tick2utick()

int Ms::RepeatList::tick2utick ( int  tick) const

◆ ticks()

int Ms::RepeatList::ticks ( ) const

◆ unwind()

void Ms::RepeatList::unwind ( )
private

◆ unwindSection()

void Ms::RepeatList::unwindSection ( Measure *const  fm,
Measure *const  em 
)
private

◆ update()

void Ms::RepeatList::update ( bool  expand)

◆ updateTempo()

void Ms::RepeatList::updateTempo ( )

◆ utick2tick()

int Ms::RepeatList::utick2tick ( int  tick) const

◆ utick2utime()

qreal Ms::RepeatList::utick2utime ( int  tick) const

◆ utime2utick()

int Ms::RepeatList::utime2utick ( qreal  t) const

Member Data Documentation

◆ _expanded

bool Ms::RepeatList::_expanded = false
private

◆ _jumpsTaken

std::set<Jump*> Ms::RepeatList::_jumpsTaken
private

◆ _score

Score* Ms::RepeatList::_score
private

◆ _scoreChanged

bool Ms::RepeatList::_scoreChanged = true
private

◆ _voltaRanges

std::map<Volta*, Measure*> Ms::RepeatList::_voltaRanges
private

◆ idx1

unsigned Ms::RepeatList::idx1
mutableprivate

◆ idx2

unsigned Ms::RepeatList::idx2
mutableprivate

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