My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
cppu::WeakImplHelper1< Ifc1 > 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::OWeakObject). More...

#include <implbase1.hxx>

Inheritance diagram for cppu::WeakImplHelper1< Ifc1 >:
cppu::OWeakObject

Classes

struct  cd

Public Member Functions

virtual com::sun::star::uno::Any queryInterface (com::sun::star::uno::Type const &rType) throw (com::sun::star::uno::RuntimeException)
virtual void acquire () throw ()
 increasing m_refCount
virtual void release () throw ()
 decreasing m_refCount
virtual
com::sun::star::uno::Sequence
< com::sun::star::uno::Type
getTypes () throw (com::sun::star::uno::RuntimeException)
virtual
com::sun::star::uno::Sequence
< sal_Int8
getImplementationId () throw (com::sun::star::uno::RuntimeException)
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject () throw ()
 Default Constructor.
 OWeakObject (const OWeakObject &rObj) throw ()
 Dummy copy constructor.
OWeakObjectoperator= (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
::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.

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () throw (::com::sun::star::uno::RuntimeException)
 Virtual dtor.
void disposeWeakConnectionPoint ()
 disposes and resets m_pWeakConnectionPoint m_refCount equals 0
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 reference count.

Detailed Description

template<class Ifc1>
class cppu::WeakImplHelper1< Ifc1 >

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::OWeakObject).

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).

These classes are used when you implement your UNO component. WeakImplHelper1 till WeakImplHelper12 can be used when you want to implement 1 till 12 interfaces in your component.

Member Function Documentation

template<class Ifc1 >
virtual void cppu::WeakImplHelper1< Ifc1 >::acquire ( ) throw ()
inlinevirtual

increasing m_refCount

Reimplemented from cppu::OWeakObject.

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

decreasing m_refCount

Reimplemented from cppu::OWeakObject.


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