LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::DeleteUnoReferenceOnDeinit< I > Class Template Referencefinal

Similar to DeleteOnDeinit, the DeleteUnoReferenceOnDeinit template class makes sure that a static UNO object is disposed and released at the right time. More...

#include <lazydelete.hxx>

Inheritance diagram for vcl::DeleteUnoReferenceOnDeinit< I >:
[legend]
Collaboration diagram for vcl::DeleteUnoReferenceOnDeinit< I >:
[legend]

Public Member Functions

 DeleteUnoReferenceOnDeinit (const css::uno::Reference< I > &r_xI)
 
css::uno::Reference< I > get ()
 
void set (const css::uno::Reference< I > &r_xNew)
 
- Public Member Functions inherited from vcl::DeleteOnDeinitBase
virtual ~DeleteOnDeinitBase ()
 

Private Member Functions

virtual void doCleanup () override
 

Private Attributes

css::uno::Reference< I > m_xI
 

Additional Inherited Members

- Static Public Member Functions inherited from vcl::DeleteOnDeinitBase
static void SAL_DLLPRIVATE ImplDeleteOnDeInit ()
 
- Static Protected Member Functions inherited from vcl::DeleteOnDeinitBase
static void addDeinitContainer (DeleteOnDeinitBase *i_pContainer)
 

Detailed Description

template<typename I>
class vcl::DeleteUnoReferenceOnDeinit< I >

Similar to DeleteOnDeinit, the DeleteUnoReferenceOnDeinit template class makes sure that a static UNO object is disposed and released at the right time.

Use like static DeleteUnoReferenceOnDeinit<lang::XMultiServiceFactory> xStaticFactory (<create factory object>); Reference<lang::XMultiServiceFactory> xFactory (xStaticFactory.get()); if (xFactory.is()) <do something with xFactory>

Definition at line 95 of file lazydelete.hxx.

Constructor & Destructor Documentation

template<typename I>
vcl::DeleteUnoReferenceOnDeinit< I >::DeleteUnoReferenceOnDeinit ( const css::uno::Reference< I > &  r_xI)
inline

Definition at line 100 of file lazydelete.hxx.

References vcl::DeleteOnDeinitBase::addDeinitContainer().

Member Function Documentation

template<typename I>
virtual void vcl::DeleteUnoReferenceOnDeinit< I >::doCleanup ( )
inlineoverrideprivatevirtual

Implements vcl::DeleteOnDeinitBase.

Definition at line 98 of file lazydelete.hxx.

References vcl::DeleteUnoReferenceOnDeinit< I >::set().

template<typename I>
css::uno::Reference<I> vcl::DeleteUnoReferenceOnDeinit< I >::get ( )
inline

Definition at line 103 of file lazydelete.hxx.

References vcl::DeleteUnoReferenceOnDeinit< I >::m_xI.

Referenced by vcl::Window::ImplGetCanvas().

template<typename I>
void vcl::DeleteUnoReferenceOnDeinit< I >::set ( const css::uno::Reference< I > &  r_xNew)
inline

Definition at line 105 of file lazydelete.hxx.

References xComponent.

Referenced by vcl::DeleteUnoReferenceOnDeinit< I >::doCleanup().

Member Data Documentation

template<typename I>
css::uno::Reference<I> vcl::DeleteUnoReferenceOnDeinit< I >::m_xI
private

Definition at line 97 of file lazydelete.hxx.

Referenced by vcl::DeleteUnoReferenceOnDeinit< I >::get().


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