2 moment.hh -- declare Moment
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
14 #include "rational.hh"
17 Rationals with glue for Guilification;
21 DECLARE_SIMPLE_SMOBS (Moment,);
25 Moment (int m, int n);
30 void operator += (Moment const &m);
31 void operator -= (Moment const &m);
33 void operator *= (Moment const &m);
34 void operator /= (Moment const &m);
39 void set_infinite (int k);
45 Deliver a copy of THIS as a smobified SCM
47 SCM smobbed_copy () const;
49 static int compare (Moment const&, Moment const&);
51 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, + );
52 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, - );
53 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, / );
54 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, * );
57 Moment * unsmob_moment (SCM);
58 int compare (Moment const&,Moment const&);
59 INSTANTIATE_COMPARE (Moment const&, Moment::compare);
62 IMPLEMENT_ARITHMETIC_OPERATOR (Moment, % );
65 #endif /* MOMENT_HH */