#include "translator.hh"
#include "debug.hh"
#include "translator-group.hh"
+#include "translator-def.hh"
#include "moment.hh"
#include "ly-smobs.icc"
char const*
-Translator::name() const
+Translator::name () const
{
- return classname(this);
+ return classname (this);
}
Translator::~Translator ()
bool
Translator::is_alias_b (String s) const
{
- return s == type_str_;
+ bool b = s == type_str_;
+
+ for (SCM a = unsmob_translator_def (definition_)->type_aliases_;
+ !b && gh_pair_p (a); a = gh_cdr (a))
+ b = b || s == ly_scm2string (gh_car (a));
+
+ return b;
}
bool
-void
-Translator::post_move_processing ()
-{
- start_translation_timestep ();
-}
void
Translator::removal_processing ()
}
-void
-Translator::pre_move_processing ()
-{
- stop_translation_timestep ();
-}
-
-
-
Music_output_def *
Translator::output_def_l () const
{
SCM
Translator::mark_smob (SCM sm)
{
- Translator * me = (Translator*) SCM_CELL_WORD_1(sm);
+ Translator * me = (Translator*) SCM_CELL_WORD_1 (sm);
scm_gc_mark (me->simple_trans_list_);
scm_gc_mark (me->trans_group_list_);
scm_gc_mark (me->definition_);
don't try to print properties, that is too much hassle.
*/
scm_puts (" >", port);
-
-
return 1;
}
-
-
-IMPLEMENT_UNSMOB(Translator, translator);
-IMPLEMENT_SMOBS(Translator);
-IMPLEMENT_DEFAULT_EQUAL_P(Translator);
+IMPLEMENT_UNSMOB (Translator, translator);
+IMPLEMENT_SMOBS (Translator);
+IMPLEMENT_DEFAULT_EQUAL_P (Translator);