]> git.donarmstrong.com Git - lilypond.git/blob - hdr/voice.hh
release: 0.0.26
[lilypond.git] / hdr / voice.hh
1 #ifndef VOICE_HH
2 #define VOICE_HH
3
4 #include "proto.hh"
5 #include "plist.hh"
6 #include "moment.hh"
7
8 /// class for  horizontal stuff.
9 struct Voice {
10     IPointerList<Voice_element *> elts;
11     Moment start;
12
13     /****************/
14     Moment when(const Voice_element*)const;
15     Moment last() const;
16     Voice();
17     Voice(Voice const&);
18     void add(Voice_element*);
19     void print() const;
20 };
21 /**
22
23     Voice is a ordered row of Voice_elements. It is strictly horizontal:
24     you cannot have two rhythmic elements running parallel in a Voice
25
26     */
27
28 /// one horizontal bit. 
29 struct Voice_element {
30     Moment duration;
31     const Voice *voice_l_;
32     IPointerList<Request*> reqs;
33
34     /****************/
35     
36     void add(Request*);
37     Voice_element();
38     Voice_element(Voice_element const & src );
39     void print ()const;
40 };
41 /** Apart from being a container for the requests, Voice_element is nothing
42     */
43 #endif