(Which properties to
[lilypond.git] / lily / apply-context-iterator.cc
blob38036708c0dd867c0f966b0c4929032cd1f3093e
1 #include "simple-music-iterator.hh"
2 #include "context.hh"
3 #include "music.hh"
5 /**
6 Iterate a property.
7 */
8 class Apply_context_iterator : public Simple_music_iterator
10 public:
11 DECLARE_SCHEME_CALLBACK (constructor, ());
12 protected:
13 virtual void process (Moment);
17 void
18 Apply_context_iterator::process (Moment m)
20 SCM proc = get_music ()->get_property ("procedure");
22 scm_call_1 (proc, get_outlet ()->self_scm ());
24 Simple_music_iterator::process (m);
27 IMPLEMENT_CTOR_CALLBACK (Apply_context_iterator);