gc-anchored.cpp revision cb492d6626459b2b9597ee37f9e7f7813f9b3b23
871fccc39b870543073d7015a9d8c701252b68f9joncruz * Inkscape::GC::Anchored - base class for anchored GC-managed objects
871fccc39b870543073d7015a9d8c701252b68f9joncruz * MenTaLguY <mental@rydia.net>
871fccc39b870543073d7015a9d8c701252b68f9joncruz * Copyright (C) 2004 MenTaLguY
871fccc39b870543073d7015a9d8c701252b68f9joncruz * Released under GNU GPL, read the file 'COPYING' for more information
871fccc39b870543073d7015a9d8c701252b68f9joncruz : _base(Util::format("%p", Core::base(const_cast<Anchored *>(object)))),
871fccc39b870543073d7015a9d8c701252b68f9joncruz _class_name(Util::share_static_string(typeid(*object).name())),
479ed85bac2b7467a6678bae572404e33465a5d9acspike _refcount(Util::format("%d", ( type == ANCHOR ? object->_anchored_refcount() + 1 : object->_anchored_refcount() - 1 ))),
871fccc39b870543073d7015a9d8c701252b68f9joncruz return new Anchor(this);
871fccc39b870543073d7015a9d8c701252b68f9joncruzvoid Anchored::_free_anchor(Anchored::Anchor *anchor) const {
871fccc39b870543073d7015a9d8c701252b68f9joncruz Debug::EventTracker<AnchorEvent> tracker(this, AnchorEvent::ANCHOR);
871fccc39b870543073d7015a9d8c701252b68f9joncruz Debug::EventTracker<AnchorEvent> tracker(this, AnchorEvent::RELEASE);
479ed85bac2b7467a6678bae572404e33465a5d9acspike Local Variables:
871fccc39b870543073d7015a9d8c701252b68f9joncruz c-file-style:"stroustrup"
871fccc39b870543073d7015a9d8c701252b68f9joncruz c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
871fccc39b870543073d7015a9d8c701252b68f9joncruz indent-tabs-mode:nil
871fccc39b870543073d7015a9d8c701252b68f9joncruz fill-column:99
871fccc39b870543073d7015a9d8c701252b68f9joncruz// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :