2 direction.hh -- declare Direction
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
30 This is necessary to safely write loops,
35 is otherwise transformed into true unconditionally.
38 DIRECTION_NEG_LIMIT = -2,
42 other_dir (Direction const d)
44 return (Direction) (-d);
48 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