void intersect (Interval_t<T> h);
T length () const;
+ T delta () const;
void set_empty () ;
bool empty_b () const { return elem (LEFT) > elem (RIGHT); }
bool contains_b (Interval_t<T> const&) const;
elem (LEFT) = l;
elem (RIGHT) =r;
}
-private:
-
+
void swap ()
{
T t = elem (LEFT);
return elem (RIGHT)-elem (LEFT);
}
+template<class T>
+T
+Interval_t<T>::delta () const
+{
+ return elem (RIGHT) - elem (LEFT);
+}
+
/**
smallest Interval which includes *this and #h#
*/
status_c_= busy;
- for (SCM d= get_grob_property ("dependencies"); gh_pair_p (d); d = ly_cdr (d))
+ for (SCM d = get_grob_property ("dependencies"); gh_pair_p (d);
+ d = ly_cdr (d))
{
unsmob_grob (ly_car (d))
->calculate_dependencies (final, busy, funcname);
SCM proc = get_grob_property (s.ch_C ());
if (gh_procedure_p (proc))
gh_call1 (proc, this->self_scm ());
+ else if (gh_list_p (proc))
+ for (SCM i = proc; gh_pair_p (i); i = ly_cdr (i))
+ gh_call1 (ly_car (i), this->self_scm ());
status_c_= final;
-
}
Molecule *