libzypp
13.10.6
|
Abstract base class for one action of a problem solution. More...
#include <SolutionAction.h>
Public Member Functions | |
virtual | ~SolutionAction () |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Overload to realize std::ostream & operator<<. More... | |
virtual bool | execute (Resolver &resolver) const =0 |
Execute this action. 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... | |
Protected Member Functions | |
SolutionAction () | |
Protected Member Functions inherited from zypp::base::ReferenceCounted | |
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... | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const SolutionAction &action) |
std::ostream & | operator<< (std::ostream &str, const SolutionActionList &actionlist) |
std::ostream & | operator<< (std::ostream &str, const CSolutionActionList &actionlist) |
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) |
Abstract base class for one action of a problem solution.
Definition at line 38 of file SolutionAction.h.
|
protected |
Definition at line 47 of file SolutionAction.cc.
|
virtual |
Definition at line 52 of file SolutionAction.cc.
|
virtual |
Overload to realize std::ostream & operator<<.
Reimplemented from zypp::base::ReferenceCounted.
Reimplemented in zypp::solver::detail::InjectSolutionAction, and zypp::solver::detail::TransactionSolutionAction.
Definition at line 118 of file SolutionAction.cc.
|
pure virtual |
Execute this action.
Returns 'true' on success, 'false' on error.
Implemented in zypp::solver::detail::InjectSolutionAction, and zypp::solver::detail::TransactionSolutionAction.
|
friend |
Definition at line 47 of file SolutionAction.h.
|
friend |
|
friend |