<html> <head> <title>class WeakReferenceHelper</title> <link rel="stylesheet" type="text/css" href="../../../../../cpp.css"> </head> <body> <div id="adc-cppref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0"> <tr align="center" valign="top"> <td class="navimain"> <a href="../../../../../index.html">Overview</a> </td> <td class="navimain"> <a href="index.html">Namespace</a> </td> <td class="navimainself"> Class </td> <td class="navimain"> <a href="../../../../../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../../../../../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <font size="-2">STATIC DATA</font></td> </tr> </table> <hr> <a href="../../../../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="../../../index.html" alt="namespace"><font size="+1"><b>com</b></font></a><font size="+1"> :: </font><a href="../../index.html" alt="namespace"><font size="+1"><b>sun</b></font></a><font size="+1"> :: </font><a href="../index.html" alt="namespace"><font size="+1"><b>star</b></font></a><font size="+1"> :: </font><a href="index.html" alt="namespace"><font size="+1"><b>uno</b></font></a><font size="+1"> :: </font><div class="title"><h2>class WeakReferenceHelper</h2> </div><hr> <dl> <dt>Base Classes</dt> <dd>None.</dd> </dl> <dl> <dt>Known Derived Classes</dt> <dd><a href="c-WeakReference.html">WeakReference</a><br> </dd> </dl> <br> <table class="flag-table" border="1" cellspacing="0"> <tr> <td width="25%" class="flagname">virtual</td> <td width="25%" class="flagname">abstract</td> <td width="25%" class="flagname">interface</td> <td width="25%" class="flagname">template</td> </tr> <tr> <td class="flagno">NO</td> <td class="flagno">NO</td> <td class="flagno">NO</td> <td class="flagno">NO</td> </tr> </table> <dl> <dt>Summary</dt> <dd>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. </dd> </dl> <dl> <dt>File</dt> <dd>weakref.hxx</dd> </dl> <hr> <dl> <dt class="subtitle"><a name="publ_"><h3>Public Members</h3> </a></dt> <dd><a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Methods</h4> </td> </tr> <tr> <td> <br> <a href="WeakReferenceHelper/o.html#WeakReferenceHelper-3344">WeakReferenceHelper</a>( ) throw( );</td> <td width="50%"> Default ctor. Creates an empty weak reference. </td> </tr> <tr> <td> <br> <a href="WeakReferenceHelper/o.html#WeakReferenceHelper-3345">WeakReferenceHelper</a>( const WeakReferenceHelper & rWeakRef ) throw( );</td> <td width="50%"> Copy ctor. Initialize this reference with the same interface as in rWeakRef. </td> </tr> <tr> <td> <br> <a href="WeakReferenceHelper/o.html#WeakReferenceHelper-3346">WeakReferenceHelper</a>( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw( );</td> <td width="50%"> 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. </td> </tr> <tr> <td> <br> <a href="WeakReferenceHelper/o.html#~WeakReferenceHelper-3347">~WeakReferenceHelper</a>( ) throw( );</td> <td width="50%"> Releases this reference. </td> </tr> <tr> <td>WeakReferenceHelper & <br> <a href="WeakReferenceHelper/o.html#operator=-3348">operator=</a>( const WeakReferenceHelper & rWeakRef ) throw( );</td> <td width="50%"> Releases this reference and takes over rWeakRef. </td> </tr> <tr> <td>WeakReferenceHelper & <br> <a href="WeakReferenceHelper/o.html#operator=-3349">operator=</a>( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & xInt ) throw( );</td> <td width="50%"> 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. </td> </tr> <tr> <td>sal_Bool <br> <a href="WeakReferenceHelper/o.html#operator==-3350">operator==</a>( const WeakReferenceHelper & rObj ) const throw( );</td> <td width="50%"> Returns true if both weak refs reference to the same object. </td> </tr> <tr> <td>::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > <br> <a href="WeakReferenceHelper/o.html#get-3351">get</a>( ) const throw( );</td> <td width="50%"> Gets a hard reference to the object. </td> </tr> <tr> <td> <br> <a href="WeakReferenceHelper/o.html#operator Reference< XInterface >-3352">operator Reference< XInterface ></a>( ) const throw( );</td> <td width="50%"> Gets a hard reference to the object. </td> </tr> </table> <hr> </dd> </dl> <a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-cppref" --> </body> </html>