#include <ResolverProblem.h>
Public Member Functions | |
| ResolverProblem (const std::string &description, const std::string &details) | |
| Constructor. | |
| ~ResolverProblem () | |
| Destructor. | |
| std::string | description () const |
| Return a one-line description of the problem. | |
| std::string | details () const |
| Return a (possibly muti-line) detailed description of the problem or an empty string if there are no useful details. | |
| ProblemSolutionList | solutions () const |
| Return the possible solutions to this problem. | |
| Resolver_constPtr | resolver () const |
| Return the parent dependency resolver. | |
| void | addSolution (ProblemSolution_Ptr solution) |
| Add a solution to this problem. | |
Private Member Functions | |
| void | clear () |
| Clear all data. | |
Private Attributes | |
| Resolver_constPtr | _resolver |
| std::string | _description |
| std::string | _details |
| ProblemSolutionList | _solutions |
Friends | |
| std::ostream & | operator<< (std::ostream &, const ResolverProblem &problem) |
Definition at line 24 of file ResolverProblem.h.
| zypp::ResolverProblem::ResolverProblem | ( | const std::string & | description, | |
| const std::string & | details | |||
| ) |
Constructor.
| zypp::ResolverProblem::~ResolverProblem | ( | ) |
| void zypp::ResolverProblem::clear | ( | ) | [private] |
Clear all data.
In particular, delete all members of _solutions.
Definition at line 110 of file ResolverProblem.cc.
References _solutions.
| std::string zypp::ResolverProblem::description | ( | ) | const [inline] |
Return a one-line description of the problem.
Definition at line 65 of file ResolverProblem.h.
References _description.
| std::string zypp::ResolverProblem::details | ( | ) | const [inline] |
Return a (possibly muti-line) detailed description of the problem or an empty string if there are no useful details.
Definition at line 71 of file ResolverProblem.h.
References _details.
| ProblemSolutionList zypp::ResolverProblem::solutions | ( | ) | const |
Return the possible solutions to this problem.
All problems should have at least 2-3 (mutually exclusive) solutions:
Definition at line 93 of file ResolverProblem.cc.
References _solutions.
| Resolver_constPtr zypp::ResolverProblem::resolver | ( | ) | const [inline] |
Return the parent dependency resolver.
Definition at line 92 of file ResolverProblem.h.
References _resolver.
| void zypp::ResolverProblem::addSolution | ( | ProblemSolution_Ptr | solution | ) |
Add a solution to this problem.
This class takes over ownership of the problem and will delete it when neccessary.
Definition at line 104 of file ResolverProblem.cc.
References _solutions.
| std::ostream& operator<< | ( | std::ostream & | , | |
| const ResolverProblem & | problem | |||
| ) | [friend] |
Resolver_constPtr zypp::ResolverProblem::_resolver [private] |
std::string zypp::ResolverProblem::_description [private] |
Definition at line 40 of file ResolverProblem.h.
Referenced by description(), and zypp::operator<<().
std::string zypp::ResolverProblem::_details [private] |
Definition at line 42 of file ResolverProblem.h.
Referenced by addSolution(), clear(), zypp::operator<<(), and solutions().
1.5.3