libzypp
17.32.4
|
Class representing one possible solution to a problem found during resolving. More...
#include <zypp/ProblemSolution.h>
Classes | |
class | Impl |
ProblemSolution implementation. More... | |
Public Types | |
using | SolutionAction_Ptr = solver::detail::SolutionAction_Ptr |
using | SolutionActionList = solver::detail::SolutionActionList |
Public Member Functions | |
ProblemSolution () | |
Constructor. More... | |
ProblemSolution (std::string description) | |
Constructor. More... | |
ProblemSolution (std::string description, std::string details) | |
Constructor. More... | |
~ProblemSolution () override | |
Destructor. More... | |
const std::string & | description () const |
Return a one-line text description of this solution. More... | |
const 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... | |
const SolutionActionList & | actions () const |
Return the list of actions forming this solution. More... | |
void | setDescription (std::string description) |
Set description of the solution. More... | |
void | setDetails (const std::string &details) |
Set detail description of the solution. More... | |
void | pushDescriptionDetail (std::string description, bool front=false) |
Collect multiple action descriptions in details (NL separated) More... | |
void | addAction (const SolutionAction_Ptr &action) |
Add an action to the actions list. More... | |
bool | skipsPatchesOnly () const |
The solution contains only 'do not install patch:' actions. More... | |
![]() | |
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 ProblemSolution &obj) |
std::ostream & | operator<< (std::ostream &, const ProblemSolutionList &obj) |
![]() | |
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 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... | |
![]() | |
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... | |
Class representing one possible solution to a problem found during resolving.
All problems should have at least 2-3 (mutually exclusive) solutions:
Definition at line 40 of file ProblemSolution.h.
using zypp::ProblemSolution::SolutionAction_Ptr = solver::detail::SolutionAction_Ptr |
Definition at line 43 of file ProblemSolution.h.
Definition at line 44 of file ProblemSolution.h.
zypp::ProblemSolution::ProblemSolution | ( | ) |
Constructor.
Definition at line 90 of file ProblemSolution.cc.
zypp::ProblemSolution::ProblemSolution | ( | std::string | description | ) |
Constructor.
Definition at line 94 of file ProblemSolution.cc.
zypp::ProblemSolution::ProblemSolution | ( | std::string | description, |
std::string | details | ||
) |
Constructor.
Definition at line 98 of file ProblemSolution.cc.
|
override |
Destructor.
Definition at line 102 of file ProblemSolution.cc.
const std::string & zypp::ProblemSolution::description | ( | ) | const |
Return a one-line text description of this solution.
Definition at line 106 of file ProblemSolution.cc.
const std::string & zypp::ProblemSolution::details | ( | ) | const |
Return a (possibly multi-line) detailed description of this solution or an empty string if there are no useful details.
Definition at line 109 of file ProblemSolution.cc.
const ProblemSolution::SolutionActionList & zypp::ProblemSolution::actions | ( | ) | const |
Return the list of actions forming this solution.
Definition at line 112 of file ProblemSolution.cc.
void zypp::ProblemSolution::setDescription | ( | std::string | description | ) |
Set description of the solution.
Definition at line 116 of file ProblemSolution.cc.
void zypp::ProblemSolution::setDetails | ( | const std::string & | details | ) |
Set detail description of the solution.
Definition at line 119 of file ProblemSolution.cc.
void zypp::ProblemSolution::pushDescriptionDetail | ( | std::string | description, |
bool | front = false |
||
) |
Collect multiple action descriptions in details (NL separated)
Definition at line 122 of file ProblemSolution.cc.
void zypp::ProblemSolution::addAction | ( | const SolutionAction_Ptr & | action | ) |
Add an action to the actions list.
Definition at line 143 of file ProblemSolution.cc.
bool zypp::ProblemSolution::skipsPatchesOnly | ( | ) | const |
The solution contains only 'do not install patch:' actions.
Definition at line 146 of file ProblemSolution.cc.
|
related |
Stream output
Definition at line 161 of file ProblemSolution.cc.
|
related |
Stream output
Definition at line 171 of file ProblemSolution.cc.
|
private |
Definition at line 106 of file ProblemSolution.h.