libzypp  17.24.1
zypp::AutoDispose< void > Class Template Reference

#include <AutoDispose.h>

Classes

struct  Impl
 

Public Types

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

Public Member Functions

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

Private Attributes

shared_ptr< Impl_pimpl
 

Detailed Description

template<>
class zypp::AutoDispose< void >

Definition at line 192 of file AutoDispose.h.

Member Typedef Documentation

◆ Dispose

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

Dispose function signatue.

Definition at line 196 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 200 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 205 of file AutoDispose.h.

Member Function Documentation

◆ reset()

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

Reset to default Ctor values.

Definition at line 212 of file AutoDispose.h.

◆ swap()

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

Exchange the contents of two AutoDispose objects.

Definition at line 216 of file AutoDispose.h.

◆ getDispose()

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

Return the current dispose function.

Definition at line 221 of file AutoDispose.h.

◆ setDispose()

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

Set a new dispose function.

Definition at line 225 of file AutoDispose.h.

◆ resetDispose()

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

Set no dispose function.

Definition at line 229 of file AutoDispose.h.

◆ swapDispose()

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

Exchange the dispose function.

Definition at line 233 of file AutoDispose.h.

Member Data Documentation

◆ _pimpl

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

Definition at line 253 of file AutoDispose.h.


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