11 #ifndef ZYPP_SAT_TRANSACTION_H
12 #define ZYPP_SAT_TRANSACTION_H
37 class Transaction_iterator;
39 class Transaction_const_iterator;
99 explicit operator bool()
const
119 const_iterator
begin()
const;
124 const_iterator
end()
const;
157 bool actionEmpty( StepStages filter_r = StepStages() )
const;
160 size_t actionSize( StepStages filter_r = StepStages() )
const;
163 action_iterator
actionBegin( StepStages filter_r = StepStages() )
const;
203 {
return !( lhs == rhs ); }
218 friend std::ostream &
operator<<( std::ostream & str,
const Step & obj );
265 operator const Solvable &()
const {
return _solv; }
292 , const detail::IdType *
294 , boost::forward_traversal_tag
306 friend class boost::iterator_core_access;
320 Transaction_const_iterator
321 , const detail::IdType *
322 , const Transaction::Step
323 , boost::forward_traversal_tag
324 , const Transaction::Step
336 friend class boost::iterator_core_access;
351 {
return( resolvable_r ?
find( resolvable_r->satSolvable() ) :
end() ); }
354 {
return( resolvable_r ?
find( resolvable_r->satSolvable() ) :
end() ); }
372 return !_filter || _filter.testFlag( step_r.
stepStage() );
401 #endif // ZYPP_SAT_TRANSACTION_H
StringQueue autoInstalled() const
Return the ident strings of all packages that would be auto-installed after the transaction is run...
int IdType
Generic Id type.
A Solvable object within the sat Pool.
friend bool operator==(const Transaction &lhs, const Transaction &rhs)
Transaction const_iterator.
[M] Install(multiversion) item (
ZYPP_DECLARE_FLAGS(StepStages, StepStage)
RW_pointer< Impl > _pimpl
Pointer to implementation.
friend std::ostream & dumpOn(std::ostream &str, const Transaction &obj)
size_t actionSize(StepStages filter_r=StepStages()) const
Number of steps in [filtered] transaction steps.
RW_pointer< Transaction::Impl > _pimpl
Pointer to implementation.
const_iterator find(const sat::Solvable &solv_r) const
Return iterator pointing to solv_r or end.
StepStage
Step action result.
Transaction()
Default ctor: empty transaction.
Access to the sat-pools string space.
Libsolv transaction wrapper.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Edition represents [epoch:]version[-release]
TraitsType::constPtrType constPtr
Transaction_const_iterator(const RW_pointer< Transaction::Impl > &pimpl_r, base_type id_r)
reference dereference() const
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_end(TFilter f, const TContainer &c)
Convenience to create filter_iterator from container::end().
Step(const RW_pointer< Impl > &pimpl_r, detail::IdType id_r)
const_iterator begin() const
Iterator to the first TransactionStep.
int installedResult(Queue &result_r) const
Return all packages that would be installed after the transaction is run.
StepStage stepStage() const
Step action result.
[ ] Nothing (includes implicit deletes due to obsoletes and non-package actions)
Base class providing common iterator types based on a Solvable iterator.
StepType stepType() const
Type of action to perform in this step.
filter_iterator< FilterAction, const_iterator > action_iterator
Transaction_iterator(const RW_pointer< Transaction::Impl > &pimpl_r, base_type id_r)
RW_pointer< Impl > _pimpl
Pointer to implementation.
friend std::ostream & operator<<(std::ostream &str, const Transaction &obj)
bool actionEmpty(StepStages filter_r=StepStages()) const
Whether the [filtered] transaction contains any steps .
A single step within a Transaction.
reference dereference() const
detail::Transaction_const_iterator const_iterator
Transaction implementation.
bool order()
Order transaction steps for commit.
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Transaction::StepStages)
bool valid() const
Whether transaction actually contains data and also fits the current pools content.
action_iterator actionEnd() const
Pointer behind the last action step in transaction.
Solvable satSolvable() const
Return the corresponding Solvable.
Libsolv Id queue wrapper.
StepType
Type of (rpm) action to perform in a Step.
size_t size() const
Number of steps in transaction steps.
action_iterator actionBegin(StepStages filter_r=StepStages()) const
Pointer to the 1st action step in [filtered] transaction.
static constexpr LoadFromPoolType loadFromPool
bool empty() const
Whether the transaction contains any steps.
const_iterator end() const
Iterator behind the last TransactionStep.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
FilterAction(StepStages filter_r)
Combining sat::Solvable and ResStatus.
filter_iterator< TFilter, typename TContainer::const_iterator > make_filter_begin(TFilter f, const TContainer &c)
Convenience to create filter_iterator from container::begin().
bool operator()(const Transaction::Step &step_r) const
RW_pointer< Transaction::Impl > _pimpl
Pointer to implementation.
detail::Transaction_iterator iterator
bool operator!=(const Transaction &lhs, const Transaction &rhs)