UDK 3.2.7 C/C++ API Reference
|
Base class to implement an UNO object supporting weak references, i.e. More...
#include <weak.hxx>
Public Member Functions | |
OWeakObject () throw () | |
Default Constructor. | |
OWeakObject (const OWeakObject &rObj) throw () | |
Dummy copy constructor. | |
OWeakObject & | operator= (const OWeakObject &) throw () |
Dummy assignment operator. | |
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 () throw () | |
Cast operator to XInterface reference. | |
Protected Member Functions | |
virtual | ~OWeakObject () throw (::com::sun::star::uno::RuntimeException) |
Virtual dtor. | |
void | disposeWeakConnectionPoint () |
disposes and resets m_pWeakConnectionPoint m_refCount equals 0 | |
Protected Attributes | |
oslInterlockedCount | m_refCount |
reference count. | |
Friends | |
class | OWeakConnectionPoint |
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.
virtual cppu::OWeakObject::~OWeakObject | ( | ) | throw (::com::sun::star::uno::RuntimeException) [protected, virtual] |
Virtual dtor.
cppu::OWeakObject::OWeakObject | ( | ) | throw () [inline] |
Default Constructor.
Sets the reference count to zero.
cppu::OWeakObject::OWeakObject | ( | const OWeakObject & | rObj | ) | throw () [inline] |
Dummy copy constructor.
Set the reference count to zero.
rObj | dummy param |
virtual void cppu::OWeakObject::acquire | ( | ) | throw () [virtual] |
increasing m_refCount
Reimplemented in cppu::OComponentHelper, cppu::WeakImplHelper1< Ifc1 >, cppu::WeakAggImplHelper1< Ifc1 >, cppu::WeakImplHelper10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10 >, cppu::WeakAggImplHelper10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10 >, cppu::WeakImplHelper11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11 >, cppu::WeakAggImplHelper11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11 >, cppu::WeakImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >, cppu::WeakAggImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >, cppu::WeakImplHelper2< Ifc1, Ifc2 >, cppu::WeakAggImplHelper2< Ifc1, Ifc2 >, cppu::WeakImplHelper3< Ifc1, Ifc2, Ifc3 >, cppu::WeakAggImplHelper3< Ifc1, Ifc2, Ifc3 >, cppu::WeakImplHelper4< Ifc1, Ifc2, Ifc3, Ifc4 >, cppu::WeakAggImplHelper4< Ifc1, Ifc2, Ifc3, Ifc4 >, cppu::WeakImplHelper5< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 >, cppu::WeakAggImplHelper5< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 >, cppu::WeakImplHelper6< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6 >, cppu::WeakAggImplHelper6< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6 >, cppu::WeakImplHelper7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7 >, cppu::WeakAggImplHelper7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7 >, cppu::WeakImplHelper8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8 >, cppu::WeakAggImplHelper8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8 >, cppu::WeakImplHelper9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9 >, cppu::WeakAggImplHelper9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9 >, and cppu::OWeakAggObject.
void cppu::OWeakObject::disposeWeakConnectionPoint | ( | ) | [protected] |
disposes and resets m_pWeakConnectionPoint m_refCount equals 0
cppu::OWeakObject::operator::com::sun::star::uno::Reference | ( | ) | throw () [inline] |
Cast operator to XInterface reference.
OWeakObject& cppu::OWeakObject::operator= | ( | const OWeakObject & | ) | throw () [inline] |
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter > cppu::OWeakObject::queryAdapter | ( | ) | throw (::com::sun::star::uno::RuntimeException) |
XWeak::queryAdapter() implementation.
virtual ::com::sun::star::uno::Any cppu::OWeakObject::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.
rType | demanded type |
Reimplemented in cppu::OComponentHelper, and cppu::OWeakAggObject.
virtual void cppu::OWeakObject::release | ( | ) | throw () [virtual] |
decreasing m_refCount
Reimplemented in cppu::OComponentHelper, cppu::WeakImplHelper1< Ifc1 >, cppu::WeakAggImplHelper1< Ifc1 >, cppu::WeakImplHelper10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10 >, cppu::WeakAggImplHelper10< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10 >, cppu::WeakImplHelper11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11 >, cppu::WeakAggImplHelper11< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11 >, cppu::WeakImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >, cppu::WeakAggImplHelper12< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9, Ifc10, Ifc11, Ifc12 >, cppu::WeakImplHelper2< Ifc1, Ifc2 >, cppu::WeakAggImplHelper2< Ifc1, Ifc2 >, cppu::WeakImplHelper3< Ifc1, Ifc2, Ifc3 >, cppu::WeakAggImplHelper3< Ifc1, Ifc2, Ifc3 >, cppu::WeakImplHelper4< Ifc1, Ifc2, Ifc3, Ifc4 >, cppu::WeakAggImplHelper4< Ifc1, Ifc2, Ifc3, Ifc4 >, cppu::WeakImplHelper5< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 >, cppu::WeakAggImplHelper5< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 >, cppu::WeakImplHelper6< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6 >, cppu::WeakAggImplHelper6< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6 >, cppu::WeakImplHelper7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7 >, cppu::WeakAggImplHelper7< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7 >, cppu::WeakImplHelper8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8 >, cppu::WeakAggImplHelper8< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8 >, cppu::WeakImplHelper9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9 >, cppu::WeakAggImplHelper9< Ifc1, Ifc2, Ifc3, Ifc4, Ifc5, Ifc6, Ifc7, Ifc8, Ifc9 >, and cppu::OWeakAggObject.
friend class OWeakConnectionPoint [friend] |
oslInterlockedCount cppu::OWeakObject::m_refCount [protected] |