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

#include <lazydelete.hxx>

Inheritance diagram for vcl::DeleteOnDeinit< T >:
[legend]
Collaboration diagram for vcl::DeleteOnDeinit< T >:
[legend]

Public Member Functions

template<class... Args>
 DeleteOnDeinit (Args &&... args)
 
 DeleteOnDeinit (DeleteOnDeinitFlag)
 
T * get ()
 
template<class... Args>
std::optional< T > set (Args &&... args)
 
- Public Member Functions inherited from vcl::DeleteOnDeinitBase
virtual ~DeleteOnDeinitBase ()
 

Private Member Functions

virtual void doCleanup () override
 

Private Attributes

std::optional< T > m_pT
 

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 T>
class vcl::DeleteOnDeinit< T >

Definition at line 71 of file lazydelete.hxx.

Constructor & Destructor Documentation

◆ DeleteOnDeinit() [1/2]

template<typename T >
template<class... Args>
vcl::DeleteOnDeinit< T >::DeleteOnDeinit ( Args &&...  args)
inline

◆ DeleteOnDeinit() [2/2]

template<typename T >
vcl::DeleteOnDeinit< T >::DeleteOnDeinit ( DeleteOnDeinitFlag  )
inline

Definition at line 82 of file lazydelete.hxx.

References vcl::DeleteOnDeinitBase::addDeinitContainer().

Member Function Documentation

◆ doCleanup()

template<typename T >
virtual void vcl::DeleteOnDeinit< T >::doCleanup ( )
inlineoverrideprivatevirtual

Implements vcl::DeleteOnDeinitBase.

Definition at line 74 of file lazydelete.hxx.

References vcl::DeleteOnDeinit< T >::m_pT.

◆ get()

template<typename T >
T * vcl::DeleteOnDeinit< T >::get ( )
inline

◆ set()

template<typename T >
template<class... Args>
std::optional< T > vcl::DeleteOnDeinit< T >::set ( Args &&...  args)
inline

Definition at line 93 of file lazydelete.hxx.

References args, and vcl::DeleteOnDeinit< T >::m_pT.

Member Data Documentation

◆ m_pT

template<typename T >
std::optional<T> vcl::DeleteOnDeinit< T >::m_pT
private

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