2 interpretation-context-handle.cc -- implement Interpretation_context_handle
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "interpretation-context-handle.hh"
10 #include "translator-group.hh"
12 Interpretation_context_handle::Interpretation_context_handle ()
17 Interpretation_context_handle::Interpretation_context_handle (Interpretation_context_handle const&s)
24 Interpretation_context_handle*
25 Interpretation_context_handle::clone () const
27 Interpretation_context_handle* handle = new Interpretation_context_handle;
28 handle->report_to_ = this->report_to_;
32 Interpretation_context_handle::~Interpretation_context_handle ()
39 Interpretation_context_handle::up (Translator_group*t)
42 t->iterator_count_ ++;
46 Interpretation_context_handle::down ()
48 report_to_->iterator_count_ --;
53 Interpretation_context_handle::try_music (Music *m)
55 return report_to_->try_music (m);
59 Interpretation_context_handle::operator = (Interpretation_context_handle const &s)
61 set_translator (s.report_to_);
65 Interpretation_context_handle::set_translator (Translator_group*trans)
67 if (report_to_ ==trans)
76 Interpretation_context_handle::report_to ()const