libzypp
15.28.6
|
Describe a solver problem and offer solutions. More...
#include <ResolverProblem.h>
Classes | |
class | Impl |
ResolverProblem implementation. More... | |
Public Member Functions | |
ResolverProblem () | |
Constructor. More... | |
ResolverProblem (std::string description) | |
Constructor. More... | |
ResolverProblem (std::string description, std::string details) | |
Constructor. More... | |
~ResolverProblem () | |
Destructor. More... | |
const std::string & | description () const |
Return a one-line description of the problem. More... | |
const std::string & | details () const |
Return a (possibly muti-line) detailed description of the problem or an empty string if there are no useful details. More... | |
const ProblemSolutionList & | solutions () const |
Return the possible solutions to this problem. More... | |
void | setDescription (std::string description) |
Set description of the problem. More... | |
void | setDetails (std::string details) |
Set detail description of the problem. More... | |
void | addSolution (ProblemSolution_Ptr solution, bool inFront=false) |
Add a solution to this problem. More... | |
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... | |
Private Attributes | |
RWCOW_pointer< Impl > | _pimpl |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &, const ResolverProblem &obj) |
std::ostream & | operator<< (std::ostream &, const ResolverProblemList &obj) |
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) |
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::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... | |
Describe a solver problem and offer solutions.
Definition at line 25 of file ResolverProblem.h.
zypp::ResolverProblem::ResolverProblem | ( | ) |
Constructor.
Definition at line 85 of file ResolverProblem.cc.
zypp::ResolverProblem::ResolverProblem | ( | std::string | description | ) |
Constructor.
Definition at line 89 of file ResolverProblem.cc.
zypp::ResolverProblem::ResolverProblem | ( | std::string | description, |
std::string | details | ||
) |
Constructor.
Definition at line 93 of file ResolverProblem.cc.
zypp::ResolverProblem::~ResolverProblem | ( | ) |
Destructor.
Definition at line 97 of file ResolverProblem.cc.
const std::string & zypp::ResolverProblem::description | ( | ) | const |
Return a one-line description of the problem.
Definition at line 101 of file ResolverProblem.cc.
const std::string & zypp::ResolverProblem::details | ( | ) | const |
Return a (possibly muti-line) detailed description of the problem or an empty string if there are no useful details.
Definition at line 104 of file ResolverProblem.cc.
const 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 107 of file ResolverProblem.cc.
void zypp::ResolverProblem::setDescription | ( | std::string | description | ) |
Set description of the problem.
Definition at line 111 of file ResolverProblem.cc.
void zypp::ResolverProblem::setDetails | ( | std::string | details | ) |
Set detail description of the problem.
Definition at line 114 of file ResolverProblem.cc.
void zypp::ResolverProblem::addSolution | ( | ProblemSolution_Ptr | solution, |
bool | inFront = false |
||
) |
Add a solution to this problem.
This class takes over ownership of the problem and will delete it when neccessary.
Definition at line 117 of file ResolverProblem.cc.
|
related |
Stream output
Definition at line 129 of file ResolverProblem.cc.
|
related |
Stream output
Definition at line 141 of file ResolverProblem.cc.
|
private |
Definition at line 84 of file ResolverProblem.h.