(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: cppu ::

class OWeakAggObject


Base Classes
com::sun::star::uno::XWeak (public)
  |  
  +--cppu::OWeakObject (public)
       |  
       |  com::sun::star::uno::XAggregation (public)
       |    |  
       +----+--OWeakAggObject
Known Derived Classes
OComponentHelper
WeakAggImplHelper4
WeakAggImplHelper3
WeakAggImplHelper2
WeakAggImplHelper12
WeakAggImplHelper5
WeakAggComponentImplHelperBase
WeakAggImplHelper6
WeakAggImplHelper1
WeakAggImplHelper11
WeakAggImplHelper8
WeakAggImplHelper9
WeakAggImplHelper10
WeakAggImplHelper7

virtual abstract interface template
YES NO NO NO
Description
Base class to implement an UNO object supporting weak references, i.e. the object can be held weakly (by a ::com::sun::star::uno::WeakReference) and aggregation, i.e. the object can be aggregated by another (delegator). This implementation copes with reference counting. Upon last release(), the virtual dtor is called.
How to Derive from this Class
Inherit from this class and delegate acquire()/ release() calls. Re-implement XAggregation::queryInterface().
File
weakagg.hxx

Public Members

Methods


OWeakAggObject( ) throw( );
Constructor. No delegator set.
virtual void
acquire( ) throw( );
If a delegator is set, then the delegators gets acquired. Otherwise call is delegated to base class ::cppu::OWeakObject.
virtual void
release( ) throw( );
If a delegator is set, then the delegators gets released. Otherwise call is delegated to base class ::cppu::OWeakObject.
virtual ::com::sun::star::uno::Any
queryInterface( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
virtual void
setDelegator( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & Delegator ) throw( ::com::sun::star::uno::RuntimeException );
Set the delegator. The delegator member reference is a weak reference.
virtual ::com::sun::star::uno::Any
queryAggregation( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
Called by the delegator or queryInterface. Re-implement this method instead of queryInterface.

Protected Members

Methods

virtual
~OWeakAggObject( ) throw( ::com::sun::star::uno::RuntimeException );
Virtual dtor. Called when reference count is 0.

Data

::com::sun::star::uno::WeakReferenceHelper xDelegator; weak reference to delegator.

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.