]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/property-iterator.cc
release: 1.0.15
[lilypond.git] / lily / property-iterator.cc
index da30301901a10d06df5aec933a7c76354e6013c4..92f1a2c8dfd6f414417b20486404bdfa82d0668c 100644 (file)
 #include "translation-property.hh"
 #include "translator-group.hh"
 
-Property_iterator::Property_iterator (Translation_property *prop_l)
-{
-  property_l_ = prop_l;
-}
-
 void
-Property_iterator::process_and_next (Moment m)
+Property_iterator::do_process_and_next (Moment m)
 {
-  if (property_l_->var_str_.length_i ())
-    report_to_l ()->set_property (property_l_->var_str_, property_l_->value_);
-  Music_iterator::process_and_next (m);
+  if (property_l()->var_str_.length_i ())
+    report_to_l ()->set_property (property_l()->var_str_, property_l()->value_);
+  Music_iterator::do_process_and_next (m);
 }
 
 IMPLEMENT_IS_TYPE_B1(Property_iterator, Music_iterator);
+
+Translation_property*
+Property_iterator::property_l () const
+{
+  return (Translation_property*) music_l_;
+}