Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

template<typename R >
static R& Inkscape::GC::release ( R &  r ) [static]

Decrements the reference count of a anchored object.

This function template generates functions which take a reference to a anchored object of a given type, increment that object's reference count, and return a reference to the object of the same type as the function's parameter.

The return value is safe to use since the object, even if its refcount has reached zero, will not actually be collected until there are no references to it in local variables or parameters.

Parameters:
ma reference to a anchored object
Returns:
the reference to the object

Definition at line 137 of file gc-anchored.h.

Referenced by Inkscape::UI::ClipboardManagerImpl::_copyNode(), Inkscape::UI::ClipboardManagerImpl::_createInternalClipboard(), Inkscape::Widgets::LayerSelector::_destroyEntry(), Inkscape::Preferences::_load(), Inkscape::Extension::build_from_file(), Inkscape::Extension::build_from_mem(), Inkscape::UI::ClipboardManagerImpl::copyPathParameter(), do_trace(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::BlurEdge::effect(), file_import(), LivePathEffectObject::fork_private_if_necessary(), SPFlowtext::getAsText(), LivePathEffectObject::livepatheffect_release(), rdf_set_license(), SPObject::releaseReferences(), Inkscape::Extension::Internal::Svg::save(), SPObject::setTitleOrDesc(), sp_desktop_widget_destroy(), sp_feBlend_release(), sp_feColorMatrix_release(), sp_feComponentTransfer_release(), sp_feComposite_release(), sp_feConvolveMatrix_release(), sp_feDiffuseLighting_release(), sp_feDisplacementMap_release(), sp_feFlood_release(), sp_feImage_release(), sp_feMerge_release(), sp_feMergeNode_release(), sp_feMorphology_release(), sp_feOffset_release(), sp_feSpecularLighting_release(), sp_feTile_release(), sp_feTurbulence_release(), sp_filter_primitive_release(), sp_filter_release(), sp_filter_write(), sp_gaussianBlur_release(), sp_gradient_repr_write_vector(), sp_lpe_item_release(), sp_marker_prev_new(), sp_offset_release(), sp_repr_do_read(), sp_repr_document_new(), sp_root_release(), sp_selection_set_mask(), sp_skeleton_release(), sp_style_read_from_prefs(), sp_svg_view_widget_init(), sp_tref_convert_to_tspan(), sp_tref_release(), sp_view_widget_destroy(), SPDesktop::SPDesktop(), Inkscape::Trace::Tracer::traceThread(), Inkscape::Extension::Dependency::~Dependency(), and Inkscape::Extension::Extension::~Extension().

                        {
    static_cast<Anchored const &>(const_cast<R const &>(r)).release();
    return r;
}

Generated by  Doxygen 1.6.0   Back to index