LibreOffice
LibreOffice 4.3 SDK C/C++ API Reference
Classes | Public Member Functions | List of all members
cppu::WeakAggImplHelper2< Ifc1, Ifc2 > Class Template Reference

Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star::uno::XInterface which supports weak mechanism to be held weakly (supporting com::sun::star::uno::XWeak thru cppu::OWeakAggObject). More...

#include <implbase2.hxx>

Inheritance diagram for cppu::WeakAggImplHelper2< Ifc1, Ifc2 >:
cppu::OWeakAggObject cppu::OWeakObject

Public Member Functions

virtual com::sun::star::uno::Any queryInterface (com::sun::star::uno::Type const &rType) SAL_OVERRIDE throw (com::sun::star::uno::RuntimeException, std::exception)
 
virtual com::sun::star::uno::Any queryAggregation (com::sun::star::uno::Type const &rType) SAL_OVERRIDE throw (com::sun::star::uno::RuntimeException, std::exception)
 
virtual void acquire () SAL_OVERRIDE throw ()
 If a delegator is set, then the delegators gets acquired. More...
 
virtual void release () SAL_OVERRIDE throw ()
 If a delegator is set, then the delegators gets released. More...
 
virtual com::sun::star::uno::Sequence< com::sun::star::uno::TypegetTypes () SAL_OVERRIDE throw (com::sun::star::uno::RuntimeException, std::exception)
 
virtual com::sun::star::uno::Sequence< sal_Int8getImplementationId () SAL_OVERRIDE throw (com::sun::star::uno::RuntimeException, std::exception)
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject () SAL_THROW(())
 Constructor. More...
 
virtual ::com::sun::star::uno::Any queryInterface (const ::com::sun::star::uno::Type &rType) SAL_OVERRIDE throw (::com::sun::star::uno::RuntimeException, std::exception)
 If a delegator is set, then the delegator is queried for the demanded interface. More...
 
virtual void setDelegator (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &Delegator) SAL_OVERRIDE throw (::com::sun::star::uno::RuntimeException, std::exception)
 Set the delegator. More...
 
virtual ::com::sun::star::uno::Any queryAggregation (const ::com::sun::star::uno::Type &rType) SAL_OVERRIDE throw (::com::sun::star::uno::RuntimeException, std::exception)
 Called by the delegator or queryInterface. More...
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject () SAL_THROW(())
 Default Constructor. More...
 
 OWeakObject (const OWeakObject &rObj) SAL_THROW(())
 Dummy copy constructor. More...
 
OWeakObjectoperator= (const OWeakObject &)
 Dummy assignment operator. More...
 
virtual ::com::sun::star::uno::Any queryInterface (const ::com::sun::star::uno::Type &rType) SAL_OVERRIDE throw (::com::sun::star::uno::RuntimeException, std::exception)
 Basic queryInterface() implementation supporting ::com::sun::star::uno::XWeak and ::com::sun::star::uno::XInterface. More...
 
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter > queryAdapter () SAL_OVERRIDE throw (::com::sun::star::uno::RuntimeException, std::exception)
 XWeak::queryAdapter() implementation. More...
 
 operator::com::sun::star::uno::Reference () SAL_THROW(())
 Cast operator to XInterface reference. More...
 

Additional Inherited Members

- Protected Attributes inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject() SAL_THROW((::com::sun::star::uno::WeakReferenceHelper xDelegator
 Virtual dtor. More...
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 reference count. More...
 

Detailed Description

template<class Ifc1, class Ifc2>
class cppu::WeakAggImplHelper2< Ifc1, Ifc2 >

Implementation helper implementing interfaces com::sun::star::lang::XTypeProvider and com::sun::star::uno::XInterface which supports weak mechanism to be held weakly (supporting com::sun::star::uno::XWeak thru cppu::OWeakAggObject).

In addition, it supports also aggregation meaning object of this class can be aggregated (com::sun::star::uno::XAggregation thru cppu::OWeakAggObject). If a delegator is set (this object is aggregated), then incoming queryInterface() calls are delegated to the delegator object. If the delegator does not support the demanded interface, it calls queryAggregation() on its aggregated objects.

Derive:

Inherit from this class giving your interface(s) to be implemented as template argument(s). Your sub class defines method implementations for these interface(s).

Member Function Documentation

template<class Ifc1 , class Ifc2 >
virtual void cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::acquire ( )
throw (
)
inlinevirtual

If a delegator is set, then the delegators gets acquired.

Otherwise call is delegated to base class cppu::OWeakObject.

Reimplemented from cppu::OWeakAggObject.

template<class Ifc1 , class Ifc2 >
virtual com::sun::star::uno::Sequence< sal_Int8 > cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::getImplementationId ( )
throw (com::sun::star::uno::RuntimeException,
std::exception
)
inlinevirtual
template<class Ifc1 , class Ifc2 >
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::getTypes ( )
throw (com::sun::star::uno::RuntimeException,
std::exception
)
inlinevirtual
template<class Ifc1 , class Ifc2 >
virtual com::sun::star::uno::Any cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::queryAggregation ( com::sun::star::uno::Type const &  rType)
throw (com::sun::star::uno::RuntimeException,
std::exception
)
inlinevirtual
template<class Ifc1 , class Ifc2 >
virtual com::sun::star::uno::Any cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::queryInterface ( com::sun::star::uno::Type const &  rType)
throw (com::sun::star::uno::RuntimeException,
std::exception
)
inlinevirtual
template<class Ifc1 , class Ifc2 >
virtual void cppu::WeakAggImplHelper2< Ifc1, Ifc2 >::release ( )
throw (
)
inlinevirtual

If a delegator is set, then the delegators gets released.

Otherwise call is delegated to base class cppu::OWeakObject.

Reimplemented from cppu::OWeakAggObject.


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