Tie_req::do_print () const{}
-/* *************** */
+IMPLEMENT_IS_TYPE_B1(Span_req,Request);
+IMPLEMENT_IS_TYPE_B2(Musical_span_req, Span_req, Musical_span_req);
-
-IMPLEMENT_IS_TYPE_B1 (Span_req,Musical_req);
+void
+Musical_span_req::do_print () const
+{
+ Span_req::do_print ();
+}
+
void
Span_req::do_print () const
{
Spacing_req::do_print ();
}
-/* *************** */
Melodic_req::Melodic_req ()
{
bool
Melodic_req::do_equal_b (Request*r) const
{
- Melodic_req* m= r->access_Musical_req ()->access_Melodic_req ();
+ Melodic_req* m= dynamic_cast <Melodic_req *> (r);
return !compare (*m, *this);
}
pitch_.print ();
}
-/* *************** */
int
Rhythmic_req::compare (Rhythmic_req const &r1, Rhythmic_req const &r2)
{
bool
Rhythmic_req::do_equal_b (Request*r) const
{
- Rhythmic_req* rh = r->access_Musical_req ()->access_Rhythmic_req ();
+ Rhythmic_req* rh = dynamic_cast <Rhythmic_req *> (r);
return !compare (*this, *rh);
}
-void
-Rhythmic_req::set_duration (Duration d)
-{
- duration_ = d;
-}
Rhythmic_req::Rhythmic_req ()
{
{
return duration_.length ();
}
-/* *************** */
+
+void
+Rhythmic_req::compress (Moment m)
+{
+ duration_.compress (m);
+}
+
Rhythmic_req::do_print ();
}
-/* *************** */
bool
Note_req::do_equal_b (Request*r) const
Rhythmic_req::do_print ();
#endif
}
-/* *************** */
IMPLEMENT_IS_TYPE_B1 (Rest_req, Rhythmic_req);
Rhythmic_req::do_print ();
}
-/* *************** */
}
-/* *************** */
IMPLEMENT_IS_TYPE_B1 (Beam_req,Span_req);
{
}
-/* *************** */
IMPLEMENT_IS_TYPE_B1 (Abbreviation_beam_req, Span_req);
{
}
-/* *************** */
bool
Span_req:: do_equal_b (Request*r) const
{
- Span_req * s = r->access_Span_req ();
+ Span_req * s = dynamic_cast <Span_req *> (r);
return spantype == s->spantype;
}
spantype = NOSPAN;
}
-/* *************** */
Script_req::Script_req (Script_req const&s)
{
dir_ = s.dir_;
bool
Script_req::do_equal_b (Request*r) const
{
- Script_req * s = r->access_Script_req ();
+ Script_req * s = dynamic_cast <Script_req *> (r);
return scriptdef_p_->equal_b (*s->scriptdef_p_);
}
{
delete scriptdef_p_;
}
-/* *************** */
Text_req::~Text_req ()
#endif
}
-/* *************** */
IMPLEMENT_IS_TYPE_B1 (Skip_req,Musical_req);
bool
Absolute_dynamic_req::do_equal_b (Request *r) const
{
- Absolute_dynamic_req *a = r->access_Musical_req ()->access_Dynamic_req ()->access_Absolute_dynamic_req ();
+ Absolute_dynamic_req *a = dynamic_cast <Absolute_dynamic_req *> (r);
return loudness_ == a->loudness_;
}
bool
Span_dynamic_req::do_equal_b (Request *req) const
{
- Span_dynamic_req * s = req->access_Musical_req ()->access_Span_dynamic_req ();
+ Span_dynamic_req * s = dynamic_cast <Span_dynamic_req *> (req);
return Span_req::do_equal_b (req) && s->dynamic_dir_ == dynamic_dir_;
}