-/*
- interpretation-context-handle.cc -- implement Interpretation_context_handle
-
+/*
+ interpretation-context-handle.cc -- implement Interpretation_context_handle
+
source file of the GNU LilyPond music typesetter
-
- (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
- */
+
+ (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
#include "interpretation-context-handle.hh"
#include "context.hh"
outlet_ = 0;
}
-Interpretation_context_handle::Interpretation_context_handle (Interpretation_context_handle const&s)
+Interpretation_context_handle::Interpretation_context_handle (Interpretation_context_handle const &s)
{
outlet_ = 0;
if (s.outlet_)
up (s.outlet_);
}
-
Interpretation_context_handle::~Interpretation_context_handle ()
{
/*
Don't do
if (outlet_)
- down ();
+ down ();
with GC, this is asynchronous.
- */
+ */
}
void
Interpretation_context_handle::up (Context *t)
{
outlet_ = t;
- t->iterator_count_ ++;
+ t->iterator_count_++;
}
void
Interpretation_context_handle::down ()
{
- outlet_->iterator_count_ --;
+ outlet_->iterator_count_--;
outlet_ = 0;
}
-void
-Interpretation_context_handle::quit ()
-{
- if (outlet_)
- {
- outlet_->iterator_count_ --;
- outlet_ = 0;
- }
-}
-
bool
Interpretation_context_handle::try_music (Music *m)
{
Context *
Interpretation_context_handle::get_outlet () const
{
-
+
return outlet_;
}
int
Interpretation_context_handle::get_count () const
{
- return outlet_->iterator_count_ ;
+ return outlet_->iterator_count_;
}