|
LibreOffice
LibreOffice 4.2 SDK C/C++ API Reference
|
The WeakReference<> holds a weak reference to an object. More...
#include <weakref.hxx>
Public Member Functions | |
| WeakReference () throw () | |
| Default ctor. More... | |
| WeakReference (const Reference< interface_type > &rRef) throw () | |
| Copy ctor. More... | |
| WeakReference & | operator= (const ::com::sun::star::uno::Reference< interface_type > &xInt) throw () |
| Releases this reference and takes over hard reference xInt. More... | |
| operator Reference< interface_type > () const throw () | |
| Gets a hard reference to the object. More... | |
Public Member Functions inherited from com::sun::star::uno::WeakReferenceHelper | |
| WeakReferenceHelper () throw () | |
| Default ctor. More... | |
| WeakReferenceHelper (const WeakReferenceHelper &rWeakRef) throw () | |
| Copy ctor. More... | |
| WeakReferenceHelper (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &xInt) throw () | |
| Initialize this reference with the hard interface reference xInt. More... | |
| ~WeakReferenceHelper () throw () | |
| Releases this reference. More... | |
| WeakReferenceHelper & | operator= (const WeakReferenceHelper &rWeakRef) throw () |
| Releases this reference and takes over rWeakRef. More... | |
| WeakReferenceHelper & | operator= (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &xInt) throw () |
| Releases this reference and takes over hard reference xInt. More... | |
| sal_Bool | operator== (const WeakReferenceHelper &rObj) const throw () |
| Returns true if both weak refs reference to the same object. More... | |
| ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface > | get () const throw () |
| Gets a hard reference to the object. More... | |
| operator Reference< XInterface > () const throw () | |
| Gets a hard reference to the object. More... | |
| void | clear () throw () |
| Releases this reference. More... | |
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 |
|
inline | |||||||||||||
Default ctor.
Creates an empty weak reference.
|
inline | ||||||||||||||
Copy ctor.
Initialize this reference with a hard reference.
| rRef | another hard ref |
|
inline | |||||||||||||
Gets a hard reference to the object.
|
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 |
1.8.6