2 template5.cc -- instantiate Intervals
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
11 #include "interval.hh"
13 #include "interval.tcc"
17 Interval_t<Rational>::infinity ()
20 infty.set_infinite (1);
27 Interval_t<Rational>::T_to_string (Rational a)
29 return a.to_string ();
32 template INTERVAL__INSTANTIATE (Rational);
37 Interval_t<Moment>::infinity ()
41 infty.main_part_.set_infinite (1);
48 Interval_t<Moment>::T_to_string (Moment a)
50 return a.to_string ();
53 template INTERVAL__INSTANTIATE (Moment);
57 Interval_t<Real>::linear_combination (Real x) const
59 Drul_array<Real> da (at (LEFT), at (RIGHT));
60 return ::linear_combination (da, x);