Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
PROTECTED MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
com::sun::star::uno::XWeak (public) | +--OWeakObject
virtual | abstract | interface | template |
YES | NO | NO | NO |
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.
Inherit from this class and delegate acquire()/ release() calls.
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. |
Methods |
|
virtual ~OWeakObject( ) throw( ::com::sun::star::uno::RuntimeException ); |
Virtual dtor. |
void disposeWeakConnectionPoint( ); |
disposes and resets m_pWeakConnectionPoint |
Data |
|
oslInterlockedCount m_refCount; | reference count. |
Copyright © 2000, 2016 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.