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

template<typename R>
static R* Inkscape::GC::release ( R *  r  )  [inline, static]

Decrements the reference count of a anchored object.

This function template generates functions which take a pointer to a anchored object of a given type, increment that object's reference count, and return a pointer 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.

m a pointer to a anchored object
the pointer to the object

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

Referenced by 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_gaussianBlur_release(), sp_lpe_item_release(), sp_offset_release(), sp_root_release(), sp_skeleton_release(), and sp_tref_release().

    static_cast<Anchored const *>(const_cast<R const *>(r))->release();
    return r;

Generated by  Doxygen 1.6.0   Back to index