lilypond-1.3.66
[lilypond.git] / flower / axis.cc
blobed55fddc4983ec83c4ae50d10fb929049ec41064
1 /*
2 axis.cc -- implement Axis
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include <assert.h>
10 #include "axes.hh"
12 String
13 axis_name_str (Axis a)
15 return to_str (char(a + 'x'));
19 TODO inline these.
21 Axis
22 post_incr(Axis &a)
24 assert(a < NO_AXES);
25 Axis b= a;
26 a = Axis(int(a) + 1);
27 return b;
30 Axis
31 incr(Axis &a)
33 assert(a < NO_AXES);
34 a = Axis(int(a) + 1);
35 return a;