21 #ifndef ZYPP_SOLVER_DETAIL_QUEUEITEM_H
22 #define ZYPP_SOLVER_DETAIL_QUEUEITEM_H
61 #define CMP(a,b) (((a) < (b)) - ((b) < (a)))
84 virtual std::ostream &
dumpOn( std::ostream & str )
const;
87 {
return obj.
dumpOn (str); }
105 virtual SolverQueueItem_Ptr
copy (
void)
const = 0;
106 virtual bool addRule (_Queue & q) =0 ;
107 virtual int cmp (SolverQueueItem_constPtr item)
const = 0;
122 #endif // ZYPP_SOLVER_DETAIL_QUEUEITEM_H
virtual int cmp(SolverQueueItem_constPtr item) const =0
virtual ~SolverQueueItem()
SolverQueueItem(SolverQueueItemType type, const ResPool &pool)
bool isInstall(void) const
bool isDelete(void) const
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
bool isUpdate(void) const
bool isInstallOneOf(void) const
std::list< SolverQueueItem_Ptr > SolverQueueItemList
virtual bool addRule(_Queue &q)=0
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
virtual SolverQueueItem_Ptr copy(void) const =0
Base class for reference counted objects.
SolverQueueItemType _type
friend std::ostream & operator<<(std::ostream &str, const SolverQueueItem &obj)
int compare(SolverQueueItem_constPtr item) const