summaryrefslogtreecommitdiff
path: root/scommands.hh
blob: 9106f2bfccc9f89451bc49a3ab32226bdeb94b75 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
  lilypond, (c) 1996 Han-Wen Nienhuys
*/
#ifndef SCOMMANDS_HH
#define SCOMMANDS_HH

#include "proto.hh"
#include "command.hh"
#include "vray.hh"
#include "plist.hh"

struct Score_commands : public PointerList<Command*> {
    void process_add(Command);
    Score_commands*parse(Real last)const;
    void parser_add(Command*);
    void add_seq(svec<Command>);
    void clean(Real last);
    void set_breakable(Real when);
    bool is_breakable(Real w);
    PCursor<Command*> last_insertion(Real w);
    PCursor<Command*> first(Real w);
    void add_command_to_break(Command pre, Command mid,Command post);
    void OK() const;
    void print() const;
    Real last() const;
    void insert_between(Command victim, PCursor<Command*> firstc,
			PCursor<Command*> last);
};
/** the list of commands in Score. Put in a separate class, since it
  otherwise clutters the methods of Score.  */

#endif