|
libzypp
15.3.0
|
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. More... | |
| void | addSingleAction (PoolItem item, const TransactionKind action) |
| Add a single action of an item. More... | |
| void | addSingleAction (Capability capability, const TransactionKind action) |
| Add a single action of a capability. More... | |
| void | addSingleAction (SolverQueueItem_Ptr item, const TransactionKind action) |
| Add a single action of a SolverQueueItem. More... | |
| int | actionCount () |
| returns the number of actions More... | |
| void | addDescription (const std::string description) |
| Set description text (append) More... | |
| void | addFrontDescription (const std::string &description) |
| Set description text (prepend) More... | |
Public Member Functions inherited from zypp::ProblemSolution | |
| ProblemSolution (ResolverProblem_Ptr parent, const std::string &description, const std::string &details) | |
| Constructor. More... | |
| ~ProblemSolution () | |
| Destructor. More... | |
| std::string | description () const |
| Return a one-line text description of this solution. More... | |
| std::string | details () const |
| Return a (possibly multi-line) detailed description of this solution or an empty string if there are no useful details. More... | |
| ResolverProblem_Ptr | problem () const |
| Return the parent dependency problem. More... | |
| bool | apply (solver::detail::Resolver &resolver) |
| Apply this solution, i.e. More... | |
| void | addAction (solver::detail::SolutionAction_constPtr action) |
| Add an action to the actions list. More... | |
| solver::detail::CSolutionActionList | actions () |
Public Member Functions inherited from zypp::base::ReferenceCounted | |
| ReferenceCounted () | |
| Default ctor. More... | |
| ReferenceCounted (const ReferenceCounted &rhs) | |
| Copy ctor. More... | |
| virtual | ~ReferenceCounted () |
| Dtor. More... | |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| Assignment. More... | |
| unsigned | refCount () const |
| Return reference counter value. More... | |
| void | ref () const |
| Add a reference. More... | |
| void | unref () const |
| Release a reference. More... | |
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 | |
Static Public Member Functions inherited from zypp::base::ReferenceCounted | |
| static void | add_ref (const ReferenceCounted *ptr_r) |
| Called by zypp::intrusive_ptr to add a reference. More... | |
| static void | release (const ReferenceCounted *ptr_r) |
| Called by zypp::intrusive_ptr to add a reference. More... | |
Protected Member Functions inherited from zypp::ProblemSolution | |
| void | clear () |
| Clear all data. More... | |
Protected Member Functions inherited from zypp::base::ReferenceCounted | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize std::ostream & operator<<. More... | |
| virtual void | ref_to (unsigned) const |
| Trigger derived classes after refCount was increased. More... | |
| virtual void | unref_to (unsigned) const |
| Trigger derived classes after refCount was decreased. More... | |
Related Functions inherited from zypp::base::ReferenceCounted | |
| void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
| void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
| std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
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.