2 direction.hh -- declare Direction
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
29 This is necessary to safely write loops,
34 is otherwise transformed into true unconditionally.
37 DIRECTION_NEG_LIMIT = -2,
41 other_dir (Direction const d)
43 return (Direction) (-d);
47 operator - (Direction const d)
56 if (*i == (Direction)1)
58 else if (*i == (Direction) - 1)
64 if d > 0: the max operator
65 if d < 0: the min operator
67 template<class T> T minmax (Direction d, T, T);
69 // String direction_string (Direction, Axis);
71 #endif // DIRECTION_HH