22 #include <solv/solver.h>
47 os <<
"[" << (_soft?
"Soft":
"") <<
"Lock: " <<
74 ERR <<
"Lock : " <<
_item <<
" not found" << endl;
77 MIL <<
"Lock " <<
_item <<
" with the SAT-Pool ID: " <<
id << endl;
80 queue_push( &(q), SOLVER_INSTALL | SOLVER_SOLVABLE | SOLVER_WEAK );
82 queue_push( &(q), SOLVER_INSTALL | SOLVER_SOLVABLE );
86 queue_push( &(q), SOLVER_ERASE | SOLVER_SOLVABLE | SOLVER_WEAK );
88 queue_push( &(q), SOLVER_ERASE | SOLVER_SOLVABLE );
91 queue_push( &(q),
id );
99 new_lock->SolverQueueItem::copy(
this);
101 new_lock->_soft =
_soft;
virtual ~SolverQueueItemLock()
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
ResStatus & status() const
Returns the current status.
virtual bool addRule(_Queue &q)
IMPL_PTR_TYPE(ProblemSolutionCombi)
virtual SolverQueueItem_Ptr copy(void) const
sat::Solvable satSolvable() const
Return the corresponding sat::Solvable.
virtual int cmp(SolverQueueItem_constPtr item) const
Reference to a PoolItem connecting ResObject and ResStatus.
IdType id() const
Expert backdoor.
int compare(SolverQueueItem_constPtr item) const
SolverQueueItemLock(const ResPool &pool, const PoolItem &item, bool soft=false)