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 47 of file weak.cxx.

Constructor & Destructor Documentation

◆ OWeakConnectionPoint() [1/2]

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

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

Definition at line 53 of file weak.cxx.

◆ OWeakConnectionPoint() [2/2]

cppu::OWeakConnectionPoint::OWeakConnectionPoint ( const OWeakConnectionPoint )
delete

◆ ~OWeakConnectionPoint()

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

Definition at line 78 of file weak.cxx.

Member Function Documentation

◆ acquire()

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

Definition at line 96 of file weak.cxx.

References m_aRefCount.

◆ addReference()

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

Definition at line 180 of file weak.cxx.

References cppu::gpWeakMutex, and m_aReferences.

◆ dispose()

void cppu::OWeakConnectionPoint::dispose ( void  )

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

Exceptions
css::uno::RuntimeException

Definition at line 117 of file weak.cxx.

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

◆ operator=()

const OWeakConnectionPoint & cppu::OWeakConnectionPoint::operator= ( const OWeakConnectionPoint )
delete

References Any.

◆ queryAdapted()

Reference< XInterface > SAL_CALL cppu::OWeakConnectionPoint::queryAdapted ( )
override

Definition at line 149 of file weak.cxx.

References cppu::gpWeakMutex, m_pObject, cppu::OWeakObject::m_refCount, and n.

◆ queryInterface()

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

Definition at line 89 of file weak.cxx.

References Any, and cppu::queryInterface().

◆ release()

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

Definition at line 106 of file weak.cxx.

References m_aRefCount.

◆ removeReference()

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

Definition at line 187 of file weak.cxx.

References cppu::gpWeakMutex, and m_aReferences.

Member Data Documentation

◆ m_aRefCount

oslInterlockedCount cppu::OWeakConnectionPoint::m_aRefCount
private

The reference counter.

Definition at line 81 of file weak.cxx.

Referenced by acquire(), and release().

◆ m_aReferences

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

The container to hold the weak references.

Definition at line 85 of file weak.cxx.

Referenced by addReference(), dispose(), and removeReference().

◆ m_pObject

OWeakObject* cppu::OWeakConnectionPoint::m_pObject
private

The weak object.

Definition at line 83 of file weak.cxx.

Referenced by dispose(), and queryAdapted().


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