libzypp  13.10.6
zypp::sat::Transaction::Impl Struct Reference

Transaction implementation. More...

Inheritance diagram for zypp::sat::Transaction::Impl:
zypp::sat::detail::PoolMember

Classes

struct  PostMortem
 

Public Types

typedef
std::tr1::unordered_set
< detail::IdType
set_type
 
typedef
std::tr1::unordered_map
< detail::IdType,
detail::IdType
map_type
 
typedef
std::tr1::unordered_map
< detail::IdType, PostMortem
pmmap_type
 

Public Member Functions

 Impl ()
 
 Impl (LoadFromPoolType)
 
 ~Impl ()
 
bool valid () const
 
bool order ()
 
bool empty () const
 
size_t size () const
 
const_iterator begin (const RW_pointer< Transaction::Impl > &self_r) const
 
iterator begin (const RW_pointer< Transaction::Impl > &self_r)
 
const_iterator end (const RW_pointer< Transaction::Impl > &self_r) const
 
iterator end (const RW_pointer< Transaction::Impl > &self_r)
 
const_iterator find (const RW_pointer< Transaction::Impl > &self_r, const sat::Solvable &solv_r) const
 
iterator find (const RW_pointer< Transaction::Impl > &self_r, const sat::Solvable &solv_r)
 
StepType stepType (Solvable solv_r) const
 
StepStage stepStage (Solvable solv_r) const
 
void stepStage (Solvable solv_r, StepStage newval_r)
 
const PostMortempmdata (Solvable solv_r) const
 

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl. More...
 

Private Member Functions

detail::IdType resolve (const Solvable &solv_r) const
 
bool isIn (const set_type &set_r, detail::IdType sid_r) const
 
StepStage stepStage (detail::IdType sid_r) const
 
void stepStage (detail::IdType sid_r, StepStage newval_r)
 
detail::IdType_find (const sat::Solvable &solv_r) const
 

Private Attributes

SerialNumberWatcher _watcher
 
mutable::Transaction * _trans
 
DefaultIntegral< bool, false > _ordered
 
set_type _doneSet
 
set_type _errSet
 
map_type _linkMap
 
set_type _systemErase
 
pmmap_type _pmMap
 

Friends

std::ostream & operator<< (std::ostream &str, const Impl &obj)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const Transaction::Impl &obj)
 

Additional Inherited Members

- Static Protected Member Functions inherited from zypp::sat::detail::PoolMember
static PoolImplmyPool ()
 

Detailed Description

Transaction implementation.

After commit the repo is reloaded. This invalidates the ids off all installed items in the transaction, including their stepType. Thats why some information (stepType, NVRA) is be stored for post mortem access (i.e. tell after commit which NVRA were deleted).

Definition at line 47 of file Transaction.cc.

Member Typedef Documentation

typedef std::tr1::unordered_set<detail::IdType> zypp::sat::Transaction::Impl::set_type

Definition at line 53 of file Transaction.cc.

Definition at line 54 of file Transaction.cc.

Definition at line 70 of file Transaction.cc.

Constructor & Destructor Documentation

zypp::sat::Transaction::Impl::Impl ( )
inline

Definition at line 73 of file Transaction.cc.

zypp::sat::Transaction::Impl::Impl ( LoadFromPoolType  )
inline

Definition at line 77 of file Transaction.cc.

zypp::sat::Transaction::Impl::~Impl ( )
inline

Definition at line 128 of file Transaction.cc.

Member Function Documentation

bool zypp::sat::Transaction::Impl::valid ( ) const
inline

Definition at line 132 of file Transaction.cc.

bool zypp::sat::Transaction::Impl::order ( )
inline

Definition at line 135 of file Transaction.cc.

bool zypp::sat::Transaction::Impl::empty ( ) const
inline

Definition at line 167 of file Transaction.cc.

size_t zypp::sat::Transaction::Impl::size ( ) const
inline

Definition at line 170 of file Transaction.cc.

const_iterator zypp::sat::Transaction::Impl::begin ( const RW_pointer< Transaction::Impl > &  self_r) const
inline

Definition at line 173 of file Transaction.cc.

iterator zypp::sat::Transaction::Impl::begin ( const RW_pointer< Transaction::Impl > &  self_r)
inline

Definition at line 175 of file Transaction.cc.

const_iterator zypp::sat::Transaction::Impl::end ( const RW_pointer< Transaction::Impl > &  self_r) const
inline

Definition at line 178 of file Transaction.cc.

iterator zypp::sat::Transaction::Impl::end ( const RW_pointer< Transaction::Impl > &  self_r)
inline

Definition at line 180 of file Transaction.cc.

const_iterator zypp::sat::Transaction::Impl::find ( const RW_pointer< Transaction::Impl > &  self_r,
const sat::Solvable solv_r 
) const
inline

Definition at line 183 of file Transaction.cc.

iterator zypp::sat::Transaction::Impl::find ( const RW_pointer< Transaction::Impl > &  self_r,
const sat::Solvable solv_r 
)
inline

Definition at line 185 of file Transaction.cc.

StepType zypp::sat::Transaction::Impl::stepType ( Solvable  solv_r) const
inline

Definition at line 189 of file Transaction.cc.

StepStage zypp::sat::Transaction::Impl::stepStage ( Solvable  solv_r) const
inline

Definition at line 206 of file Transaction.cc.

void zypp::sat::Transaction::Impl::stepStage ( Solvable  solv_r,
StepStage  newval_r 
)
inline

Definition at line 209 of file Transaction.cc.

const PostMortem& zypp::sat::Transaction::Impl::pmdata ( Solvable  solv_r) const
inline

Definition at line 212 of file Transaction.cc.

detail::IdType zypp::sat::Transaction::Impl::resolve ( const Solvable solv_r) const
inlineprivate

Definition at line 220 of file Transaction.cc.

bool zypp::sat::Transaction::Impl::isIn ( const set_type set_r,
detail::IdType  sid_r 
) const
inlineprivate

Definition at line 226 of file Transaction.cc.

StepStage zypp::sat::Transaction::Impl::stepStage ( detail::IdType  sid_r) const
inlineprivate

Definition at line 229 of file Transaction.cc.

void zypp::sat::Transaction::Impl::stepStage ( detail::IdType  sid_r,
StepStage  newval_r 
)
inlineprivate

Definition at line 238 of file Transaction.cc.

detail::IdType* zypp::sat::Transaction::Impl::_find ( const sat::Solvable solv_r) const
inlineprivate

Definition at line 256 of file Transaction.cc.

static shared_ptr<Impl> zypp::sat::Transaction::Impl::nullimpl ( )
inlinestatic

Offer default Impl.

Definition at line 282 of file Transaction.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const Impl obj 
)
friend
std::ostream & operator<< ( std::ostream &  str,
const Transaction::Impl obj 
)
related

Stream output

Definition at line 290 of file Transaction.cc.

Member Data Documentation

SerialNumberWatcher zypp::sat::Transaction::Impl::_watcher
private

Definition at line 270 of file Transaction.cc.

mutable ::Transaction* zypp::sat::Transaction::Impl::_trans
private

Definition at line 271 of file Transaction.cc.

DefaultIntegral<bool,false> zypp::sat::Transaction::Impl::_ordered
private

Definition at line 272 of file Transaction.cc.

set_type zypp::sat::Transaction::Impl::_doneSet
private

Definition at line 274 of file Transaction.cc.

set_type zypp::sat::Transaction::Impl::_errSet
private

Definition at line 275 of file Transaction.cc.

map_type zypp::sat::Transaction::Impl::_linkMap
private

Definition at line 276 of file Transaction.cc.

set_type zypp::sat::Transaction::Impl::_systemErase
private

Definition at line 277 of file Transaction.cc.

pmmap_type zypp::sat::Transaction::Impl::_pmMap
private

Definition at line 278 of file Transaction.cc.


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