2 drul-array.hh -- declare Drul_array
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "direction.hh"
18 Left/right or Up/down arrays. Drul is nicer sounding than udlr
26 assert (d==1 || d== -1);
27 return array_[ (d+1)/2];
30 T &operator[] (Direction d)
34 T elem (Direction d) const
36 assert (d==1 || d== -1);
37 return array_[ (d+1)/2];
40 T operator[] (Direction d) const
46 Drul_array (T t1, T t2)
53 #endif // DRUL_ARRAY_HH