LibreOffice Module cppuhelper (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cppu::OWeakConnectionPoint Class Reference
Inheritance diagram for cppu::OWeakConnectionPoint:
[legend]
Collaboration diagram for cppu::OWeakConnectionPoint:
[legend]

Public Member Functions

 OWeakConnectionPoint (OWeakObject *pObj)
 Hold the weak object without an acquire (only the pointer). More...
 
 OWeakConnectionPoint (const OWeakConnectionPoint &)=delete
 
const OWeakConnectionPointoperator= (const OWeakConnectionPoint &)=delete
 
Any SAL_CALL queryInterface (const Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
css::uno::Reference< css::uno::XInterface > SAL_CALL queryAdapted () override
 
void SAL_CALL addReference (const css::uno::Reference< css::uno::XReference > &xRef) override
 
void SAL_CALL removeReference (const css::uno::Reference< css::uno::XReference > &xRef) override
 
void dispose ()
 Called from the weak object if the reference count goes to zero. More...
 

Private Member Functions

virtual ~OWeakConnectionPoint ()
 

Private Attributes

oslInterlockedCount m_aRefCount
 The reference counter. More...
 
OWeakObjectm_pObject
 The weak object. More...
 
std::vector< Reference< XReference > > m_aReferences
 The container to hold the weak references. More...
 

Detailed Description

Definition at line 48 of file weak.cxx.

Constructor & Destructor Documentation

cppu::OWeakConnectionPoint::OWeakConnectionPoint ( OWeakObject pObj)
inlineexplicit

Hold the weak object without an acquire (only the pointer).

Definition at line 54 of file weak.cxx.

cppu::OWeakConnectionPoint::OWeakConnectionPoint ( const OWeakConnectionPoint )
delete
virtual cppu::OWeakConnectionPoint::~OWeakConnectionPoint ( )
inlineprivatevirtual

Definition at line 79 of file weak.cxx.

Member Function Documentation

void SAL_CALL cppu::OWeakConnectionPoint::acquire ( )
overridenoexcept

Definition at line 97 of file weak.cxx.

Referenced by cppu::OWeakObject::queryAdapter().

void SAL_CALL cppu::OWeakConnectionPoint::addReference ( const css::uno::Reference< css::uno::XReference > &  xRef)
override

Definition at line 181 of file weak.cxx.

void cppu::OWeakConnectionPoint::dispose ( void  )

Called from the weak object if the reference count goes to zero.

Exceptions
css::uno::RuntimeException

Definition at line 118 of file weak.cxx.

References Any, ex, cppu::getCaughtException(), cppu::gpWeakMutex, i, and cppu::throwException().

Referenced by cppu::OWeakObject::disposeWeakConnectionPoint().

const OWeakConnectionPoint& cppu::OWeakConnectionPoint::operator= ( const OWeakConnectionPoint )
delete
Reference< XInterface > SAL_CALL cppu::OWeakConnectionPoint::queryAdapted ( )
override

Definition at line 150 of file weak.cxx.

References n.

Any SAL_CALL cppu::OWeakConnectionPoint::queryInterface ( const Type rType)
override

Definition at line 90 of file weak.cxx.

References Any, and cppu::queryInterface().

void SAL_CALL cppu::OWeakConnectionPoint::release ( )
overridenoexcept

Definition at line 107 of file weak.cxx.

Referenced by cppu::OWeakObject::disposeWeakConnectionPoint().

void SAL_CALL cppu::OWeakConnectionPoint::removeReference ( const css::uno::Reference< css::uno::XReference > &  xRef)
override

Definition at line 188 of file weak.cxx.

Member Data Documentation

oslInterlockedCount cppu::OWeakConnectionPoint::m_aRefCount
private

The reference counter.

Definition at line 82 of file weak.cxx.

std::vector<Reference<XReference> > cppu::OWeakConnectionPoint::m_aReferences
private

The container to hold the weak references.

Definition at line 86 of file weak.cxx.

OWeakObject* cppu::OWeakConnectionPoint::m_pObject
private

The weak object.

Definition at line 84 of file weak.cxx.


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