|
libzypp
15.3.0
|
Class representing one possible solution to one problem found during resolving. More...
#include <ProblemSolution.h>

Public Member Functions | |
| 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 Member Functions | |
| 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... | |
Protected Attributes | |
| ResolverProblem_Ptr | _problem |
| solver::detail::CSolutionActionList | _actions |
| std::string | _description |
| std::string | _details |
Friends | |
| std::ostream & | operator<< (std::ostream &, const ProblemSolution &solution) |
| std::ostream & | operator<< (std::ostream &, const ProblemSolutionList &solutionlist) |
| std::ostream & | operator<< (std::ostream &, const CProblemSolutionList &solutionlist) |
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... | |
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.
All problems should have at least 2-3 (mutually exclusive) solutions:
Definition at line 42 of file ProblemSolution.h.
| zypp::ProblemSolution::ProblemSolution | ( | ResolverProblem_Ptr | parent, |
| const std::string & | description, | ||
| const std::string & | details | ||
| ) |
Constructor.
Definition at line 71 of file ProblemSolution.cc.
| zypp::ProblemSolution::~ProblemSolution | ( | ) |
Destructor.
Definition at line 79 of file ProblemSolution.cc.
|
protected |
Clear all data.
In particular, delete all members of _actions.
Definition at line 120 of file ProblemSolution.cc.
|
inline |
Return a one-line text description of this solution.
Definition at line 82 of file ProblemSolution.h.
|
inline |
Return a (possibly multi-line) detailed description of this solution or an empty string if there are no useful details.
Definition at line 88 of file ProblemSolution.h.
|
inline |
Return the parent dependency problem.
Definition at line 93 of file ProblemSolution.h.
| bool zypp::ProblemSolution::apply | ( | solver::detail::Resolver & | resolver | ) |
Apply this solution, i.e.
execute all of its actions.
Returns 'true' on success, 'false' if actions could not be performed.
Definition at line 91 of file ProblemSolution.cc.
| void zypp::ProblemSolution::addAction | ( | solver::detail::SolutionAction_constPtr | action | ) |
Add an action to the actions list.
Definition at line 113 of file ProblemSolution.cc.
|
inline |
Definition at line 109 of file ProblemSolution.h.
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 55 of file ProblemSolution.h.
|
protected |
Definition at line 56 of file ProblemSolution.h.
|
protected |
Definition at line 57 of file ProblemSolution.h.
|
protected |
Definition at line 58 of file ProblemSolution.h.