LibreOffice Module comphelper (master)  1
Public Member Functions | List of all members
comphelper::OWeakTypeObject Class Reference

Base class to implement a UNO object supporting types and weak references, i.e. More...

#include <weak.hxx>

Inheritance diagram for comphelper::OWeakTypeObject:
[legend]
Collaboration diagram for comphelper::OWeakTypeObject:
[legend]

Public Member Functions

 OWeakTypeObject ()
 
virtual ~OWeakTypeObject () override
 
 OWeakTypeObject (OWeakTypeObject const &)=default
 
 OWeakTypeObject (OWeakTypeObject &&)=default
 
OWeakTypeObjectoperator= (OWeakTypeObject const &)=default
 
OWeakTypeObjectoperator= (OWeakTypeObject &&)=default
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
virtual void SAL_CALL acquire () override throw ()
 
virtual void SAL_CALL release () override throw ()
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Base class to implement a UNO object supporting types and weak references, i.e.

the object can be held weakly (by a css::uno::WeakReference). This implementation copes with reference counting. Upon last release(), the virtual dtor is called.

In addition to the features from cppu::OWeakObject, derivations from this class can also used as a base class for ::cppu::ImplInheritanceHelper?

Definition at line 37 of file weak.hxx.

Constructor & Destructor Documentation

comphelper::OWeakTypeObject::OWeakTypeObject ( )

Definition at line 29 of file weak.cxx.

comphelper::OWeakTypeObject::~OWeakTypeObject ( )
overridevirtual

Definition at line 33 of file weak.cxx.

comphelper::OWeakTypeObject::OWeakTypeObject ( OWeakTypeObject const &  )
default
comphelper::OWeakTypeObject::OWeakTypeObject ( OWeakTypeObject &&  )
default

Member Function Documentation

void SAL_CALL comphelper::OWeakTypeObject::acquire ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 45 of file weak.cxx.

References cppu::OWeakObject::acquire().

Sequence<::sal_Int8 > SAL_CALL comphelper::OWeakTypeObject::getImplementationId ( )
overridevirtual

Definition at line 60 of file weak.cxx.

Sequence< Type > SAL_CALL comphelper::OWeakTypeObject::getTypes ( )
overridevirtual

Definition at line 55 of file weak.cxx.

OWeakTypeObject& comphelper::OWeakTypeObject::operator= ( OWeakTypeObject const &  )
default
OWeakTypeObject& comphelper::OWeakTypeObject::operator= ( OWeakTypeObject &&  )
default
Any SAL_CALL comphelper::OWeakTypeObject::queryInterface ( const css::uno::Type &  rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 37 of file weak.cxx.

References Any.

void SAL_CALL comphelper::OWeakTypeObject::release ( )
throw (
)
overridevirtual

Reimplemented from cppu::OWeakObject.

Definition at line 50 of file weak.cxx.

References cppu::OWeakObject::release().


The documentation for this class was generated from the following files: