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 PostMortem & | pmdata (Solvable solv_r) const |
Static Public Member Functions | |
static shared_ptr< Impl > | nullimpl () |
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 |
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.
typedef std::tr1::unordered_set<detail::IdType> zypp::sat::Transaction::Impl::set_type |
Definition at line 51 of file Transaction.cc.
typedef std::tr1::unordered_map<detail::IdType,detail::IdType> zypp::sat::Transaction::Impl::map_type |
Definition at line 52 of file Transaction.cc.
typedef std::tr1::unordered_map<detail::IdType,PostMortem> zypp::sat::Transaction::Impl::pmmap_type |
Definition at line 68 of file Transaction.cc.
zypp::sat::Transaction::Impl::Impl | ( | ) | [inline] |
zypp::sat::Transaction::Impl::Impl | ( | ::_Transaction & | trans_r | ) | [inline] |
Definition at line 74 of file Transaction.cc.
References _linkMap, _pmMap, _systemErase, _trans, begin(), zypp::PoolItem::buddy(), end(), for_, zypp::sat::Solvable::id(), zypp::ResPool::instance(), zypp::sat::Solvable::isKind(), zypp::sat::Solvable::isSystem(), zypp::sat::detail::PoolMember::myPool(), zypp::sat::Queue::push(), stepType(), and zypp::sat::Transaction::TRANSACTION_ERASE.
zypp::sat::Transaction::Impl::~Impl | ( | ) | [inline] |
bool zypp::sat::Transaction::Impl::valid | ( | ) | const [inline] |
Definition at line 125 of file Transaction.cc.
References _watcher, zypp::SerialNumberWatcher::isClean(), and zypp::sat::detail::PoolMember::myPool().
Referenced by order().
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] |
size_t zypp::sat::Transaction::Impl::size | ( | ) | const [inline] |
const_iterator zypp::sat::Transaction::Impl::begin | ( | const RW_pointer< Transaction::Impl > & | self_r | ) | const [inline] |
iterator zypp::sat::Transaction::Impl::begin | ( | const RW_pointer< Transaction::Impl > & | self_r | ) | [inline] |
const_iterator zypp::sat::Transaction::Impl::end | ( | const RW_pointer< Transaction::Impl > & | self_r | ) | const [inline] |
iterator zypp::sat::Transaction::Impl::end | ( | const RW_pointer< Transaction::Impl > & | self_r | ) | [inline] |
const_iterator zypp::sat::Transaction::Impl::find | ( | const RW_pointer< Transaction::Impl > & | self_r, | |
const sat::Solvable & | solv_r | |||
) | const [inline] |
iterator zypp::sat::Transaction::Impl::find | ( | const RW_pointer< Transaction::Impl > & | self_r, | |
const sat::Solvable & | solv_r | |||
) | [inline] |
Definition at line 182 of file Transaction.cc.
References _systemErase, _trans, zypp::sat::Solvable::id(), isIn(), zypp::sat::Transaction::TRANSACTION_ERASE, zypp::sat::Transaction::TRANSACTION_IGNORE, zypp::sat::Transaction::TRANSACTION_INSTALL, and zypp::sat::Transaction::TRANSACTION_MULTIINSTALL.
Referenced by Impl().
const PostMortem& zypp::sat::Transaction::Impl::pmdata | ( | Solvable | solv_r | ) | const [inline] |
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] |
StepStage zypp::sat::Transaction::Impl::stepStage | ( | detail::IdType | sid_r | ) | const [inline, private] |
Definition at line 222 of file Transaction.cc.
References _doneSet, _errSet, isIn(), zypp::sat::Transaction::STEP_DONE, zypp::sat::Transaction::STEP_ERROR, and zypp::sat::Transaction::STEP_TODO.
void zypp::sat::Transaction::Impl::stepStage | ( | detail::IdType | sid_r, | |
StepStage | newval_r | |||
) | [inline, private] |
Definition at line 231 of file Transaction.cc.
References _doneSet, _errSet, zypp::filesystem::erase(), zypp::sat::Transaction::STEP_DONE, zypp::sat::Transaction::STEP_TODO, and stepStage().
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] |
std::ostream & operator<< | ( | std::ostream & | str, | |
const Impl & | obj | |||
) | [friend] |
Stream output
Definition at line 283 of file Transaction.cc.
mutable ::Transaction zypp::sat::Transaction::Impl::_trans [private] |
DefaultIntegral<bool,false> zypp::sat::Transaction::Impl::_ordered [private] |