LibreOffice Module comphelper (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::unique_disposing_ptr< T > Class Template Reference

#include <unique_disposing_ptr.hxx>

Inheritance diagram for comphelper::unique_disposing_ptr< T >:
[legend]

Classes

class  TerminateListener
 

Public Member Functions

 unique_disposing_ptr (const css::uno::Reference< css::lang::XComponent > &rComponent, T *p=nullptr, bool bComponent=false)
 
virtual void reset (T *p=nullptr)
 
T & operator* () const
 
T * get () const
 
T * operator-> () const
 
 operator bool () const
 
virtual ~unique_disposing_ptr () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 unique_disposing_ptr (const unique_disposing_ptr &)=delete
 
unique_disposing_ptroperator= (const unique_disposing_ptr &)=delete
 

Private Attributes

std::unique_ptr< T, o3tl::default_delete< T > > m_xItem
 
css::uno::Reference< css::frame::XTerminateListener > m_xTerminateListener
 

Detailed Description

template<class T>
class comphelper::unique_disposing_ptr< T >

Definition at line 27 of file unique_disposing_ptr.hxx.

Constructor & Destructor Documentation

◆ unique_disposing_ptr() [1/2]

template<class T >
comphelper::unique_disposing_ptr< T >::unique_disposing_ptr ( const unique_disposing_ptr< T > &  )
privatedelete

◆ unique_disposing_ptr() [2/2]

template<class T >
comphelper::unique_disposing_ptr< T >::unique_disposing_ptr ( const css::uno::Reference< css::lang::XComponent > &  rComponent,
T *  p = nullptr,
bool  bComponent = false 
)
inline

◆ ~unique_disposing_ptr()

template<class T >
virtual comphelper::unique_disposing_ptr< T >::~unique_disposing_ptr ( )
inlinevirtual

Member Function Documentation

◆ get()

template<class T >
T * comphelper::unique_disposing_ptr< T >::get ( ) const
inline

◆ operator bool()

template<class T >
comphelper::unique_disposing_ptr< T >::operator bool ( ) const
inline

◆ operator*()

template<class T >
T & comphelper::unique_disposing_ptr< T >::operator* ( ) const
inline

◆ operator->()

template<class T >
T * comphelper::unique_disposing_ptr< T >::operator-> ( ) const
inline

◆ operator=()

template<class T >
unique_disposing_ptr & comphelper::unique_disposing_ptr< T >::operator= ( const unique_disposing_ptr< T > &  )
privatedelete

◆ reset()

template<class T >
virtual void comphelper::unique_disposing_ptr< T >::reset ( T *  p = nullptr)
inlinevirtual

Member Data Documentation

◆ m_xItem

template<class T >
std::unique_ptr<T, o3tl::default_delete<T> > comphelper::unique_disposing_ptr< T >::m_xItem
private

◆ m_xTerminateListener

template<class T >
css::uno::Reference< css::frame::XTerminateListener> comphelper::unique_disposing_ptr< T >::m_xTerminateListener
private

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