2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1999--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #include "context-handle.hh"
23 Context_handle::Context_handle ()
28 Context_handle::Context_handle (Context_handle
const &s
)
35 Context_handle::~Context_handle ()
43 with GC, this is asynchronous.
48 Context_handle::up (Context
*t
)
55 Context_handle::down ()
57 outlet_
->iterator_count_
--;
62 Context_handle::operator = (Context_handle
const &s
)
64 set_context (s
.outlet_
);
68 Context_handle::set_context (Context
*trans
)
79 Context_handle::get_outlet () const
86 Context_handle::get_count () const
88 return outlet_
->iterator_count_
;