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 (css::uno::Reference< I > _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 ()
 
virtual void doCleanup ()=0
 
- 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 113 of file lazydelete.hxx.

Constructor & Destructor Documentation

◆ DeleteUnoReferenceOnDeinit()

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

Definition at line 118 of file lazydelete.hxx.

References vcl::DeleteOnDeinitBase::addDeinitContainer().

Member Function Documentation

◆ doCleanup()

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

Implements vcl::DeleteOnDeinitBase.

Definition at line 116 of file lazydelete.hxx.

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

◆ get()

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

◆ set()

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

Member Data Documentation

◆ m_xI

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

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