]> git.donarmstrong.com Git - lilypond.git/blob - flower/interval.cc
release: 0.1.61
[lilypond.git] / flower / interval.cc
1 /*
2   interval.cc -- instantiate Interval_t<Real>
3
4   source file of the Flower Library
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #include "interval.hh"
11 #include "real.hh"
12 #include "interval.tcc"
13
14 template INTERVAL__INSTANTIATE (Real);
15
16 Real
17 Interval_t<Real>::infinity () 
18 {
19   return HUGE_VAL;
20 }
21
22 String
23 Interval_t<Real>::T_to_str (Real r)
24 {
25   return String (r);
26 }
27
28 template INTERVAL__INSTANTIATE (int);
29
30 int
31 Interval_t<int>::infinity () 
32 {
33   return INT_MAX;
34 }
35
36 String
37 Interval_t<int>::T_to_str (int i)
38 {
39   return String (i);
40 }
41