/** Base class to implement a UNO object supporting weak references, i.e. the object can be held weakly(byacss::uno::WeakReference)andaggregation,i.e.theobjectcanbe aggregatedbyanother(delegator). Thisimplementationcopeswithreferencecounting.Uponlastrelease(),thevirtualdtor iscalled.
@derive Inheritfromthisclassanddelegateacquire()/release()calls.Re-implement XAggregation::queryInterface().
*/ class CPPUHELPER_DLLPUBLIC OWeakAggObject
: public ::cppu::OWeakObject
, public css::uno::XAggregation
{ public: /** Constructor. No delegator set.
*/
OWeakAggObject()
{}
/** If a delegator is set, then the delegators gets acquired. Otherwise call is delegated to baseclass::cppu::OWeakObject.
*/ virtualvoid SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE; /** If a delegator is set, then the delegators gets released. Otherwise call is delegated to baseclass::cppu::OWeakObject.
*/ virtualvoid SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE; /** If a delegator is set, then the delegator is queried for the demanded interface. If the delegatorcannotprovidethedemandedinterface,itcallsqueryAggregation()onits aggregatedobjects.
/** Set the delegator. The delegator member reference is a weak reference.
@paramDelegatortheobjectthatdelegateitsqueryInterfacetothisaggregate.
*/ virtualvoid SAL_CALL setDelegator( const css::uno::Reference< css::uno::XInterface > & Delegator ) SAL_OVERRIDE; /** Called by the delegator or queryInterface. Re-implement this method instead of queryInterface.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.