libzypp  17.2.2
zypp::ResPoolProxy::ScopedSaveState Class Reference

Exception safe scoped save/restore state. More...

#include <ResPoolProxy.h>


struct  Impl

Public Member Functions

 ScopedSaveState (const ResPoolProxy &pool_r)
 ScopedSaveState (const ResPoolProxy &pool_r, const ResKind &kind_r)
 ~ScopedSaveState ()
void acceptState ()

Private Attributes

std::unique_ptr< Impl_pimpl

Detailed Description

Exception safe scoped save/restore state.

Call acceptState to prevent the class from restoring the remembered state.

Definition at line 263 of file ResPoolProxy.h.

Constructor & Destructor Documentation

◆ ScopedSaveState() [1/2]

zypp::ResPoolProxy::ScopedSaveState::ScopedSaveState ( const ResPoolProxy pool_r)

Definition at line 267 of file ResPoolProxy.h.

◆ ScopedSaveState() [2/2]

zypp::ResPoolProxy::ScopedSaveState::ScopedSaveState ( const ResPoolProxy pool_r,
const ResKind kind_r 

Definition at line 271 of file ResPoolProxy.h.

◆ ~ScopedSaveState()

zypp::ResPoolProxy::ScopedSaveState::~ScopedSaveState ( )

Definition at line 275 of file ResPoolProxy.h.

Member Function Documentation


zypp::ResPoolProxy::ScopedSaveState::NON_COPYABLE_BUT_MOVE ( ScopedSaveState  )

◆ acceptState()

void zypp::ResPoolProxy::ScopedSaveState::acceptState ( )

Definition at line 278 of file ResPoolProxy.h.

Member Data Documentation

◆ _pimpl

std::unique_ptr<Impl> zypp::ResPoolProxy::ScopedSaveState::_pimpl

Definition at line 298 of file ResPoolProxy.h.

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