]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/performer.hh
skyline.cc: make merge_skylines a single iteration
[lilypond.git] / lily / include / performer.hh
index fcd5a26b424c73ff229d247ca2454e40d7b0f515..123713d3cbeeae1dcbdaf6f76de299f2d2ad852a 100644 (file)
@@ -33,6 +33,12 @@ public:
   VIRTUAL_COPY_CONSTRUCTOR (Translator, Performer);
   friend class Performer_group;
   Performer_group *get_daddy_performer () const;
+  static Performer *unsmob (SCM perf) {
+    return dynamic_cast <Performer *> (Translator::unsmob (perf));
+  }
+  static bool is_smob (SCM perf) {
+    return Translator::is_smob (perf) && unsmob (perf);
+  }
 
 protected:
   virtual void announce_element (Audio_element_info);
@@ -40,7 +46,5 @@ protected:
   virtual void create_audio_elements ();
 };
 
-Performer *unsmob_performer (SCM perf);
-
 #endif /* PERFORMER_HH */