(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 OWeakObject


Base Classes
com::sun::star::uno::XWeak (public)
  |  
  +--OWeakObject
Known Derived Classes
WeakImplHelper4
WeakImplHelper3
WeakImplHelper2
WeakImplHelper12
WeakImplHelper5
WeakComponentImplHelperBase
OWeakAggObject
WeakImplHelper6
WeakImplHelper1
WeakImplHelper11
WeakImplHelper8
WeakImplHelper9
WeakImplHelper10
WeakImplHelper7

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).
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.
File
weak.hxx

Public Members

Methods


OWeakObject( ) throw( );
Default Constructor. Sets the reference count to zero. Accidentally occurs in msvc mapfile = > had to be outlined.

OWeakObject( ) throw( );
Default Constructor. Sets the reference count to zero.

OWeakObject( const OWeakObject & ) throw( );
Dummy copy constructor. Set the reference count to zero.
OWeakObject &
operator=( const OWeakObject & ) throw( );
Dummy assignment operator. Does not affect reference count.
virtual ::com::sun::star::uno::Any
queryInterface( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
Basic queryInterface() implementation supporting ::com::sun::star::uno::XWeak and ::com::sun::star::uno::XInterface.
virtual void
acquire( ) throw( );
increasing m_refCount
virtual void
release( ) throw( );
decreasing m_refCount
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter >
queryAdapter( ) throw( ::com::sun::star::uno::RuntimeException );
XWeak::queryAdapter()implementation

operator ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >( ) throw( );
Cast operator to XInterface reference.

Protected Members

Methods

virtual
~OWeakObject( ) throw( ::com::sun::star::uno::RuntimeException );
Virtual dtor.

Data

oslInterlockedCount m_refCount; reference count.

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.