diff --git a/src/gc-managed.h b/src/gc-managed.h
index fc13b25134a062084a0d94a3a4cf1e7c612d9daf..74d224c9b19c8ceefd274d5e391e2c30fb0cc83d 100644 (file)
--- a/src/gc-managed.h
+++ b/src/gc-managed.h
-/** \file
- * Inkscape::GC::Managed - base class for GC-managed objects
- *
- * Copyright 2004 MenTaLguY <mental@rydia.net>
+/** @file
+ * @brief Base class for GC-managed objects
+ */
+/* Copyright 2004 MenTaLguY <mental@rydia.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* of the License, or (at your option) any later version.
*
* See the file COPYING for details.
- *
*/
#ifndef SEEN_INKSCAPE_GC_MANAGED_H
CollectionPolicy default_collect=AUTO>
class Managed {
public:
- /** @brief Registers a pointer to be cleared when this object becomes
- * inaccessible.
- */
- template <typename T>
- void clearOnceInaccessible(T **p_ptr) {
- Core::general_register_disappearing_link(
- reinterpret_cast<void **>(p_ptr), Core::base(this)
- );
- }
-
- /** @brief Cancels the registration of a pointer, so it will not be
- * cleared when this object becomes inacessible.
- */
- template <typename T>
- void cancelClearOnceInaccessible(T **p_ptr) {
- Core::unregister_disappearing_link(
- reinterpret_cast<void **>(p_ptr)
- );
- }
-
void *operator new(std::size_t size,
ScanPolicy scan=default_scan,
CollectionPolicy collect=default_collect)
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :