UDK 3.2.7 C/C++ API Reference
|
The WeakReference<> holds a weak reference to an object. More...
#include <weakref.hxx>
Public Member Functions | |
WeakReference () throw () | |
Default ctor. | |
WeakReference (const Reference< interface_type > &rRef) throw () | |
Copy ctor. | |
WeakReference & | operator= (const ::com::sun::star::uno::Reference< interface_type > &xInt) throw () |
Releases this reference and takes over hard reference xInt. | |
operator Reference< interface_type > () const throw () | |
Gets a hard reference to the object. |
The WeakReference<> holds a weak reference to an object.
This object must implement the ::com::sun::star::uno::XWeak interface. The implementation is thread safe.
interface_type | type of interface |
com::sun::star::uno::WeakReference< interface_type >::WeakReference | ( | ) | throw () [inline] |
Default ctor.
Creates an empty weak reference.
com::sun::star::uno::WeakReference< interface_type >::WeakReference | ( | const Reference< interface_type > & | rRef | ) | throw () [inline] |
Copy ctor.
Initialize this reference with a hard reference.
rRef | another hard ref |
com::sun::star::uno::WeakReference< interface_type >::operator Reference< interface_type > | ( | ) | const throw () [inline] |
Gets a hard reference to the object.
WeakReference& com::sun::star::uno::WeakReference< interface_type >::operator= | ( | const ::com::sun::star::uno::Reference< interface_type > & | xInt | ) | throw () [inline] |
Releases this reference and takes over hard reference xInt.
If the implementation behind xInt does not support XWeak or XInt is null, then this reference is null.
xInt | another hard reference |