libzypp  13.10.6
zypp::solver::detail::SolutionAction Class Referenceabstract

Abstract base class for one action of a problem solution. More...

#include <SolutionAction.h>

Inheritance diagram for zypp::solver::detail::SolutionAction:
zypp::base::ReferenceCounted zypp::solver::detail::InjectSolutionAction zypp::solver::detail::TransactionSolutionAction

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...
 
ReferenceCountedoperator= (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...
 

Detailed Description

Abstract base class for one action of a problem solution.

Definition at line 38 of file SolutionAction.h.

Constructor & Destructor Documentation

zypp::solver::detail::SolutionAction::SolutionAction ( )
protected

Definition at line 47 of file SolutionAction.cc.

zypp::solver::detail::SolutionAction::~SolutionAction ( )
virtual

Definition at line 52 of file SolutionAction.cc.

Member Function Documentation

ostream & zypp::solver::detail::SolutionAction::dumpOn ( std::ostream &  str) const
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.

virtual bool zypp::solver::detail::SolutionAction::execute ( Resolver resolver) const
pure virtual

Execute this action.

Returns 'true' on success, 'false' on error.

Implemented in zypp::solver::detail::InjectSolutionAction, and zypp::solver::detail::TransactionSolutionAction.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const SolutionAction action 
)
friend

Definition at line 47 of file SolutionAction.h.

std::ostream& operator<< ( std::ostream &  str,
const SolutionActionList actionlist 
)
friend
std::ostream& operator<< ( std::ostream &  str,
const CSolutionActionList actionlist 
)
friend

The documentation for this class was generated from the following files: