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 () override throw ()
 
void SAL_CALL release () override throw ()
 
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 52 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 58 of file weak.cxx.

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

Definition at line 83 of file weak.cxx.

Member Function Documentation

void SAL_CALL cppu::OWeakConnectionPoint::acquire ( )
throw (
)
override

Definition at line 101 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 173 of file weak.cxx.

References cppu::getWeakMutex().

void cppu::OWeakConnectionPoint::dispose ( void  )

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

Exceptions
css::uno::RuntimeException

Definition at line 113 of file weak.cxx.

References Any, cppu::getCaughtException(), cppu::getWeakMutex(), 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 145 of file weak.cxx.

References cppu::getWeakMutex(), and n.

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

Definition at line 94 of file weak.cxx.

References Any, and cppu::queryInterface().

void SAL_CALL cppu::OWeakConnectionPoint::release ( )
throw (
)
override

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

References cppu::getWeakMutex().

Member Data Documentation

oslInterlockedCount cppu::OWeakConnectionPoint::m_aRefCount
private

The reference counter.

Definition at line 86 of file weak.cxx.

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

The container to hold the weak references.

Definition at line 90 of file weak.cxx.

OWeakObject* cppu::OWeakConnectionPoint::m_pObject
private

The weak object.

Definition at line 88 of file weak.cxx.


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