// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: orderlist.h,v 1.9 2001/02/20 07:03:17 jgg Exp $
/* ######################################################################
Order List - Represents and Manipulates an ordered list of packages.
class pkgDepCache;
class pkgOrderList : protected pkgCache::Namespace
{
+ void * const d;
protected:
pkgDepCache &Cache;
bool DoRun();
// For pre sorting
- static pkgOrderList *Me;
- static int OrderCompareA(const void *a, const void *b) APT_PURE;
- static int OrderCompareB(const void *a, const void *b) APT_PURE;
+ int OrderCompareA(Package *a, Package *b) APT_PURE;
+ int OrderCompareB(Package *a, Package *b) APT_PURE;
int FileCmp(PkgIterator A,PkgIterator B) APT_PURE;
public:
int Score(PkgIterator Pkg);
- pkgOrderList(pkgDepCache *Cache);
- ~pkgOrderList();
+ explicit pkgOrderList(pkgDepCache *Cache);
+ virtual ~pkgOrderList();
};
#endif