Inkscape
Vector Graphics Editor
|
A weak pointer to an SPObject: it nulls itself upon the object's destruction. More...
#include <weakptr.h>
Public Member Functions | |
SPWeakPtr ()=default | |
SPWeakPtr (T *obj) | |
SPWeakPtr & | operator= (T *obj) |
SPWeakPtr (SPWeakPtr const &other) | |
SPWeakPtr & | operator= (SPWeakPtr const &other) |
~SPWeakPtr () | |
void | reset () |
void | reset (T *obj) |
operator bool () const | |
T * | get () const |
T & | operator* () const |
T * | operator-> () const |
Private Member Functions | |
void | attach () |
void | detach () |
Private Attributes | |
T * | _obj = nullptr |
sigc::connection | _conn |
A weak pointer to an SPObject: it nulls itself upon the object's destruction.
|
default |
|
inlineexplicit |
Definition at line 17 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::attach().
|
inline |
|
inline |
Definition at line 21 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::detach().
|
inlineprivate |
Definition at line 34 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_conn, and Inkscape::SPWeakPtr< T >::_obj.
Referenced by Inkscape::SPWeakPtr< T >::reset(), and Inkscape::SPWeakPtr< T >::SPWeakPtr().
|
inlineprivate |
Definition at line 35 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_conn, and Inkscape::SPWeakPtr< T >::_obj.
Referenced by Inkscape::SPWeakPtr< T >::reset(), Inkscape::SPWeakPtr< T >::reset(), and Inkscape::SPWeakPtr< T >::~SPWeakPtr().
|
inline |
Definition at line 26 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj.
Referenced by Inkscape::UI::Tools::SpiralTool::drag(), Inkscape::UI::Tools::ArcTool::drag(), Inkscape::UI::Tools::RectTool::drag(), Inkscape::UI::Tools::StarTool::drag(), Inkscape::UI::Tools::ArcTool::finishItem(), Inkscape::UI::Tools::RectTool::finishItem(), Inkscape::UI::Tools::SpiralTool::finishItem(), Inkscape::UI::Tools::StarTool::finishItem(), Inkscape::UI::Tools::Box3dTool::root_handler(), and Inkscape::UI::Tools::SpiralTool::root_handler().
|
inlineexplicit |
Definition at line 25 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj.
|
inline |
Definition at line 27 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj.
|
inline |
Definition at line 28 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj.
|
inline |
Definition at line 20 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj, and Inkscape::SPWeakPtr< T >::reset().
|
inline |
Definition at line 18 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::reset().
|
inline |
Definition at line 23 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj, and Inkscape::SPWeakPtr< T >::detach().
Referenced by Inkscape::SPWeakPtr< T >::operator=(), and Inkscape::SPWeakPtr< T >::operator=().
|
inline |
Definition at line 24 of file weakptr.h.
References Inkscape::SPWeakPtr< T >::_obj, Inkscape::SPWeakPtr< T >::attach(), and Inkscape::SPWeakPtr< T >::detach().
|
private |
Definition at line 32 of file weakptr.h.
Referenced by Inkscape::SPWeakPtr< T >::attach(), and Inkscape::SPWeakPtr< T >::detach().
|
private |
Definition at line 31 of file weakptr.h.
Referenced by Inkscape::SPWeakPtr< T >::attach(), Inkscape::SPWeakPtr< T >::detach(), Inkscape::SPWeakPtr< T >::get(), Inkscape::SPWeakPtr< T >::operator bool(), Inkscape::SPWeakPtr< T >::operator*(), Inkscape::SPWeakPtr< T >::operator->(), Inkscape::SPWeakPtr< T >::operator=(), Inkscape::SPWeakPtr< T >::reset(), and Inkscape::SPWeakPtr< T >::reset().