libzypp 17.31.23
zypp::AutoDispose< void > Class Reference

#include <AutoDispose.h>

Classes

struct  Impl
 

Public Types

typedef function< void()> Dispose
 Dispose function signatue.
 

Public Member Functions

 AutoDispose ()
 Default Ctor using default constructed value and no dispose function.
 
 AutoDispose (const Dispose &dispose_r)
 Ctor taking dispose function and using default constructed value.
 
void reset ()
 Reset to default Ctor values.
 
void swap (AutoDispose &rhs)
 Exchange the contents of two AutoDispose objects.
 
const DisposegetDispose () const
 Return the current dispose function.
 
void setDispose (const Dispose &dispose_r)
 Set a new dispose function.
 
void resetDispose ()
 Set no dispose function.
 
void swapDispose (Dispose &dispose_r)
 Exchange the dispose function.
 

Private Attributes

shared_ptr< Impl_pimpl
 

Detailed Description

Definition at line 212 of file AutoDispose.h.

Member Typedef Documentation

◆ Dispose

typedef function<void ()> zypp::AutoDispose< void >::Dispose

Dispose function signatue.

Definition at line 216 of file AutoDispose.h.

Constructor & Destructor Documentation

◆ AutoDispose() [1/2]

zypp::AutoDispose< void >::AutoDispose ( )
inline

Default Ctor using default constructed value and no dispose function.

Definition at line 220 of file AutoDispose.h.

◆ AutoDispose() [2/2]

zypp::AutoDispose< void >::AutoDispose ( const Dispose dispose_r)
inlineexplicit

Ctor taking dispose function and using default constructed value.

Definition at line 225 of file AutoDispose.h.

Member Function Documentation

◆ reset()

void zypp::AutoDispose< void >::reset ( )
inline

Reset to default Ctor values.

Definition at line 232 of file AutoDispose.h.

◆ swap()

void zypp::AutoDispose< void >::swap ( AutoDispose< void > &  rhs)
inline

Exchange the contents of two AutoDispose objects.

Definition at line 236 of file AutoDispose.h.

◆ getDispose()

const Dispose & zypp::AutoDispose< void >::getDispose ( ) const
inline

Return the current dispose function.

Definition at line 241 of file AutoDispose.h.

◆ setDispose()

void zypp::AutoDispose< void >::setDispose ( const Dispose dispose_r)
inline

Set a new dispose function.

Definition at line 245 of file AutoDispose.h.

◆ resetDispose()

void zypp::AutoDispose< void >::resetDispose ( )
inline

Set no dispose function.

Definition at line 249 of file AutoDispose.h.

◆ swapDispose()

void zypp::AutoDispose< void >::swapDispose ( Dispose dispose_r)
inline

Exchange the dispose function.

Definition at line 253 of file AutoDispose.h.

Member Data Documentation

◆ _pimpl

shared_ptr<Impl> zypp::AutoDispose< void >::_pimpl
private

Definition at line 273 of file AutoDispose.h.


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