3 interpretation-context-handle.cc -- implement Interpretation_context_handle
5 source file of the GNU LilyPond music typesetter
7 (c) 1999--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "interpretation-context-handle.hh"
12 #include "translator-group.hh"
14 Interpretation_context_handle::Interpretation_context_handle ()
19 Interpretation_context_handle::Interpretation_context_handle (Interpretation_context_handle const&s)
26 Interpretation_context_handle*
27 Interpretation_context_handle::clone () const
29 Interpretation_context_handle* handle = new Interpretation_context_handle;
30 handle->report_to_l_ = this->report_to_l_;
34 Interpretation_context_handle::~Interpretation_context_handle ()
41 Interpretation_context_handle::up (Translator_group*t)
44 t->iterator_count_ ++;
48 Interpretation_context_handle::down ()
50 report_to_l_->iterator_count_ --;
55 Interpretation_context_handle::try_music (Music *m)
57 return report_to_l_->try_music (m);
61 Interpretation_context_handle::operator = (Interpretation_context_handle const &s)
63 set_translator (s.report_to_l_);
67 Interpretation_context_handle::set_translator (Translator_group*trans)
69 if (report_to_l_ ==trans)
78 Interpretation_context_handle::report_to_l ()const