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"
18 Left/right or Up/down arrays. Drul is nicer sounding than udlr
24 T &operator[] (Direction d)
26 assert (d==1 || d== -1);
27 return array_[(d+1)/2];
29 T operator[] (Direction d) const
31 assert (d==1 || d== -1);
32 return array_[(d+1)/2];
36 #endif // DRUL_ARRAY_HH