Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Methods of Class WeakReferenceHelper


WeakReferenceHelper
WeakReferenceHelper() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
Default ctor. Creates an empty weak reference.

WeakReferenceHelper
WeakReferenceHelper(
const WeakReferenceHelper & rWeakRef ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Copy ctor. Initialize this reference with the same interface as in rWeakRef.
Parameters
rWeakRef
another weak ref
    

WeakReferenceHelper
WeakReferenceHelper(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Initialize this reference with the hard interface reference xInt. If the implementation behind xInt does not support XWeak or XInt is null then this reference will be null.
Parameters
xInt
another hard interface reference

~WeakReferenceHelper
~WeakReferenceHelper() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Releases this reference.

operator=
WeakReferenceHelper & operator=(
const WeakReferenceHelper & rWeakRef ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Releases this reference and takes over rWeakRef.
Parameters
rWeakRef
another weak ref

operator=
WeakReferenceHelper & operator=(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Description
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.
Parameters
xInt
another hard reference

operator==
sal_Bool operator==(
const WeakReferenceHelper & rObj ) const throw();

virtual abstract const volatile template static inline C-linkage
NO NO YES NO NO NO YES NO

Summary
Returns true if both weak refs reference to the same object.
Parameters
rObj
another weak ref
        
Return
true, if both weak refs reference to the same object.

get
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > get() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Gets a hard reference to the object.
Return
hard reference or null, if the weakly referenced interface has gone

operator Reference< XInterface >
operator Reference< XInterface >() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
Gets a hard reference to the object.
Return
hard reference or null, if the weakly referenced interface has gone

clear
void clear() throw();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Summary
Releases this reference.
Since
UDK 3.2.12

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.