MuseScore  3.4
Music composition and notation
elementmap.h
Go to the documentation of this file.
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 __ELEMENTMAP_H__
14 #define __ELEMENTMAP_H__
15 
16 namespace Ms {
17 
18 class Element;
19 
20 //---------------------------------------------------------
21 // ElementMap
22 //---------------------------------------------------------
23 
24 class ElementMap : QHash<Element*, Element*> {
25 
26  public:
28  Element* findNew(Element* o) const { return value(o); }
29  void add(Element* o, Element* n) { insert(o, n); }
30  };
31 
32 
33 } // namespace Ms
34 #endif
35 
Base class of score layout elements.
Definition: element.h:158
Element * findNew(Element *o) const
Definition: elementmap.h:28
void add(Element *o, Element *n)
Definition: elementmap.h:29
ElementMap()
Definition: elementmap.h:27
Definition: aeolus.cpp:26
Definition: elementmap.h:24