2 drul-array.hh -- declare Drul_array
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
13 #include "direction.hh"
16 Left/right or Up/down arrays. Drul is nicer sounding than udlr
22 T &operator[] (Direction d)
24 assert (d==1 || d== -1);
25 return array_[(d+1)/2];
27 T operator[] (Direction d) const
29 assert (d==1 || d== -1);
30 return array_[(d+1)/2];
34 #endif // DRUL_ARRAY_HH