libzypp
11.13.5
|
Class representing one possible solution to one problem found during resolving This problem solution is a combination of different actions. More...
#include <ProblemSolutionCombi.h>
Public Member Functions | |
ProblemSolutionCombi (ResolverProblem_Ptr parent) | |
Constructor. | |
void | addSingleAction (PoolItem item, const TransactionKind action) |
Add a single action of an item. | |
void | addSingleAction (Capability capability, const TransactionKind action) |
Add a single action of a capability. | |
void | addSingleAction (SolverQueueItem_Ptr item, const TransactionKind action) |
Add a single action of a SolverQueueItem. | |
int | actionCount () |
returns the number of actions | |
void | addDescription (const std::string description) |
Set description text (append) | |
void | addFrontDescription (const std::string &description) |
Set description text (prepend) | |
Public Member Functions inherited from zypp::ProblemSolution | |
ProblemSolution (ResolverProblem_Ptr parent, const std::string &description, const std::string &details) | |
Constructor. | |
~ProblemSolution () | |
Destructor. | |
std::string | description () const |
Return a one-line text description of this solution. | |
std::string | details () const |
Return a (possibly multi-line) detailed description of this solution or an empty string if there are no useful details. | |
ResolverProblem_Ptr | problem () const |
Return the parent dependency problem. | |
bool | apply (solver::detail::Resolver &resolver) |
Apply this solution, i.e. | |
void | addAction (solver::detail::SolutionAction_constPtr action) |
Add an action to the actions list. | |
solver::detail::CSolutionActionList | actions () |
Public Member Functions inherited from zypp::base::ReferenceCounted | |
ReferenceCounted () | |
Default ctor. | |
ReferenceCounted (const ReferenceCounted &rhs) | |
Copy ctor. | |
virtual | ~ReferenceCounted () |
Dtor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
unsigned | refCount () const |
Return reference counter value. | |
void | ref () const |
Add a reference. | |
void | unref () const |
Release a reference. |
Protected Attributes | |
int | actNumber |
Protected Attributes inherited from zypp::ProblemSolution | |
ResolverProblem_Ptr | _problem |
solver::detail::CSolutionActionList | _actions |
std::string | _description |
std::string | _details |
Additional Inherited Members | |
Protected Member Functions inherited from zypp::ProblemSolution | |
void | clear () |
Clear all data. | |
Protected Member Functions inherited from zypp::base::ReferenceCounted | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. | |
virtual void | ref_to (unsigned) const |
Trigger derived classes after refCount was increased. | |
virtual void | unref_to (unsigned) const |
Trigger derived classes after refCount was decreased. |
Class representing one possible solution to one problem found during resolving This problem solution is a combination of different actions.
e.G. install, delete, keep different resolvables.
Definition at line 46 of file ProblemSolutionCombi.h.
zypp::solver::detail::ProblemSolutionCombi::ProblemSolutionCombi | ( | ResolverProblem_Ptr | parent | ) |
Constructor.
Definition at line 48 of file ProblemSolutionCombi.cc.
void zypp::solver::detail::ProblemSolutionCombi::addSingleAction | ( | PoolItem | item, |
const TransactionKind | action | ||
) |
Add a single action of an item.
Definition at line 62 of file ProblemSolutionCombi.cc.
void zypp::solver::detail::ProblemSolutionCombi::addSingleAction | ( | Capability | capability, |
const TransactionKind | action | ||
) |
Add a single action of a capability.
Definition at line 56 of file ProblemSolutionCombi.cc.
void zypp::solver::detail::ProblemSolutionCombi::addSingleAction | ( | SolverQueueItem_Ptr | item, |
const TransactionKind | action | ||
) |
Add a single action of a SolverQueueItem.
Definition at line 68 of file ProblemSolutionCombi.cc.
|
inline |
returns the number of actions
Definition at line 74 of file ProblemSolutionCombi.h.
void zypp::solver::detail::ProblemSolutionCombi::addDescription | ( | const std::string | description | ) |
Set description text (append)
Definition at line 74 of file ProblemSolutionCombi.cc.
void zypp::solver::detail::ProblemSolutionCombi::addFrontDescription | ( | const std::string & | description | ) |
Set description text (prepend)
Definition at line 93 of file ProblemSolutionCombi.cc.
|
protected |
Definition at line 49 of file ProblemSolutionCombi.h.