zypp::sat::Transaction::Impl Struct Reference

Transaction implementation. More...

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

Inheritance graph
[legend]

List of all members.

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 (::_Transaction &trans_r)
 ~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.

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)

Classes

struct  PostMortem


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 46 of file Transaction.cc.


Member Typedef Documentation

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

Definition at line 51 of file Transaction.cc.

Definition at line 52 of file Transaction.cc.

Definition at line 68 of file Transaction.cc.


Constructor & Destructor Documentation

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

Definition at line 71 of file Transaction.cc.

References _trans.

zypp::sat::Transaction::Impl::Impl ( ::_Transaction &  trans_r  )  [inline]

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

Definition at line 121 of file Transaction.cc.

References _trans.


Member Function Documentation

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

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

Definition at line 128 of file Transaction.cc.

References _ordered, _trans, empty(), MIL, zypp::sat::Queue::pop_front(), and valid().

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

Definition at line 160 of file Transaction.cc.

References _trans.

Referenced by order().

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

Definition at line 163 of file Transaction.cc.

References _trans.

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

Definition at line 166 of file Transaction.cc.

References _trans.

Referenced by Impl().

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

Definition at line 168 of file Transaction.cc.

References _trans.

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

Definition at line 171 of file Transaction.cc.

References _trans.

Referenced by find(), and Impl().

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

Definition at line 173 of file Transaction.cc.

References _trans.

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

Definition at line 176 of file Transaction.cc.

References _find(), and end().

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

Definition at line 178 of file Transaction.cc.

References _find(), and end().

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

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

Definition at line 199 of file Transaction.cc.

References resolve().

Referenced by stepStage().

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

Definition at line 202 of file Transaction.cc.

References resolve(), and stepStage().

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

Definition at line 205 of file Transaction.cc.

References _pmMap, and zypp::sat::Solvable::id().

detail::IdType zypp::sat::Transaction::Impl::resolve ( const Solvable solv_r  )  const [inline, private]

Definition at line 213 of file Transaction.cc.

References _linkMap, and zypp::sat::Solvable::id().

Referenced by stepStage().

bool zypp::sat::Transaction::Impl::isIn ( const set_type set_r,
detail::IdType  sid_r 
) const [inline, private]

Definition at line 219 of file Transaction.cc.

Referenced by stepStage(), and stepType().

StepStage zypp::sat::Transaction::Impl::stepStage ( detail::IdType  sid_r  )  const [inline, private]

void zypp::sat::Transaction::Impl::stepStage ( detail::IdType  sid_r,
StepStage  newval_r 
) [inline, private]

detail::IdType* zypp::sat::Transaction::Impl::_find ( const sat::Solvable solv_r  )  const [inline, private]

Definition at line 249 of file Transaction.cc.

References _trans, for_, and zypp::sat::Solvable::id().

Referenced by find().

static shared_ptr<Impl> zypp::sat::Transaction::Impl::nullimpl (  )  [inline, static]

Offer default Impl.

Definition at line 275 of file Transaction.cc.


Friends And Related Function Documentation

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

Stream output

Definition at line 283 of file Transaction.cc.


Member Data Documentation

Definition at line 263 of file Transaction.cc.

Referenced by valid().

Definition at line 264 of file Transaction.cc.

Referenced by _find(), begin(), empty(), end(), Impl(), order(), size(), stepType(), and ~Impl().

Definition at line 265 of file Transaction.cc.

Referenced by order().

Definition at line 267 of file Transaction.cc.

Referenced by stepStage().

Definition at line 268 of file Transaction.cc.

Referenced by stepStage().

Definition at line 269 of file Transaction.cc.

Referenced by Impl(), and resolve().

Definition at line 270 of file Transaction.cc.

Referenced by Impl(), and stepType().

Definition at line 271 of file Transaction.cc.

Referenced by Impl(), and pmdata().


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

Generated on Tue May 5 14:49:50 2015 for libzypp by  doxygen 1.5.6