1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2011 Werner Schweer
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License version 2
9 //  as published by the Free Software Foundation and appearing in
10 //  the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __TUPLETMAP_H__
14 #define __TUPLETMAP_H__
15 
16 namespace Ms {
17 
18 class Tuplet;
19 
20 //---------------------------------------------------------
21 //   Tuplet2
22 //---------------------------------------------------------
23 
24 struct Tuplet2 {
25       Tuplet* o;
26       Tuplet* n;
Tuplet2Tuplet227       Tuplet2(Tuplet* _o, Tuplet* _n) : o(_o), n(_n) {}
28       };
29 
30 //---------------------------------------------------------
31 //   TupletMap
32 //---------------------------------------------------------
33 
34 class TupletMap {
35       QList<Tuplet2> map;
36 
37    public:
TupletMap()38       TupletMap() {}
39       Tuplet* findNew(Tuplet* o);
add(Tuplet * _o,Tuplet * _n)40       void add(Tuplet* _o, Tuplet* _n) { map.append(Tuplet2(_o, _n)); }
41       };
42 
43 
44 }     // namespace Ms
45 #endif
46 
47