2004-01-06 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * lily/include/scm-hash.hh (class Scheme_hash_table): idem.
+
+ * flower/include/interval.hh: rename elem_b to contains
+
* lily/tie.cc: change 'heads to 'head-pair.
* lily/lyric-phrasing-engraver.cc (process_acknowledged_grobs):
}
String to_string () const;
- bool elem_b (T r);
+ bool contains (T r);
void negate () {
T r = -elem (LEFT);
T l = -elem (RIGHT);
gap.add_point (gap1);
gap.add_point (gap2);
- if (gap.elem_b (radius))
+ if (gap.contains (radius))
dem += extra_demerit;
}
while ((flip (&d))!= LEFT);
{
warning (_("Not sure that we can find a nice beam slope (no viable initial configuration found)."));
}
- else if (!feasible_left_point.elem_b(y))
+ else if (!feasible_left_point.contains (y))
{
if (isinf (feasible_left_point[DOWN]))
y = feasible_left_point[UP] - REGION_SIZE;
{
public:
bool try_retrieve (SCM key, SCM *val);
- bool elem_b (SCM key) const;
+ bool contains (SCM key) const;
/**
WARNING: putting something in assumes responsibility for cleaning
}
bool
-Scheme_hash_table::elem_b (SCM k) const
+Scheme_hash_table::contains (SCM k) const
{
return ly_pair_p (scm_hashq_get_handle (hash_tab_, k));
}
Translator_group*
Translator_group::where_defined (SCM sym) const
{
- if (properties_dict ()->elem_b (sym))
+ if (properties_dict ()->contains (sym))
{
return (Translator_group*)this;
}