#include <ProblemSolution.h>
Inheritance diagram for zypp::ProblemSolution:

Public Member Functions | |
| 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. | |
Protected Member Functions | |
| void | clear () |
| Clear all data. | |
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) |
All problems should have at least 2-3 (mutually exclusive) solutions:
Definition at line 43 of file ProblemSolution.h.
|
||||||||||||||||
|
Constructor.
|
|
|
Destructor.
Definition at line 78 of file ProblemSolution.cc. |
|
|
Clear all data. In particular, delete all members of _actions. Definition at line 118 of file ProblemSolution.cc. References _actions. |
|
|
Return a one-line text description of this solution.
Definition at line 83 of file ProblemSolution.h. References _description. |
|
|
Return a (possibly multi-line) detailed description of this solution or an empty string if there are no useful details.
Definition at line 89 of file ProblemSolution.h. References _details. |
|
|
Return the parent dependency problem.
Definition at line 94 of file ProblemSolution.h. References _problem. |
|
|
Apply this solution, i.e. execute all of its actions. Returns 'true' on success, 'false' if actions could not be performed. Definition at line 90 of file ProblemSolution.cc. |
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 56 of file ProblemSolution.h. Referenced by problem(). |
|
|
Definition at line 57 of file ProblemSolution.h. Referenced by addAction(), apply(), clear(), and zypp::operator<<(). |
|
|
1.4.6