(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4
 Overview   Namespace   Class   Index   Help 
PUBLIC MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA

:: com :: sun :: star :: uno ::

class WeakReferenceHelper


Base Classes
None.
Known Derived Classes
WeakReference

virtual abstract interface template
NO NO NO NO
Summary
The WeakReferenceHelper holds a weak reference to an object. This object must implement the ::com::sun::star::uno::XWeak interface. The implementation is thread safe.
File
weakref.hxx

Public Members

Methods


WeakReferenceHelper( ) throw( );
Default ctor. Creates an empty weak reference.

WeakReferenceHelper( const WeakReferenceHelper & rWeakRef ) throw( );
Copy ctor. Initialize this reference with the same interface as in rWeakRef.

WeakReferenceHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw( );
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.

~WeakReferenceHelper( ) throw( );
Releases this reference.
WeakReferenceHelper &
operator=( const WeakReferenceHelper & rWeakRef ) throw( );
Releases this reference and takes over rWeakRef.
WeakReferenceHelper &
operator=( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw( );
Releases this reference and takes over hard reference xInt. If the implementation behind xInt does not support XWeak or XInt is null, than this reference is null.
sal_Bool
operator==( const WeakReferenceHelper & rObj ) const throw( );
Returns true if both weak refs reference to the same object.
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
get( ) const throw( );
Gets a hard reference to the object.

operator Reference< XInterface >( ) const throw( );
Gets a hard reference to the object.

Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

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

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.