X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/6c139d6e362f04a1582e8a8f511f8aeab031fecf..ac2b6b5e14b9f45ef78b1b51ca8fa60a3fca5818:/apt-pkg/cacheiterators.h diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index f234526db..7cdc197a2 100644 --- a/apt-pkg/cacheiterators.h +++ b/apt-pkg/cacheiterators.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: cacheiterators.h,v 1.4 1998/07/07 04:17:00 jgg Exp $ +// $Id: cacheiterators.h,v 1.7 1998/10/02 04:39:44 jgg Exp $ /* ###################################################################### Cache Iterators - Iterators for navigating the cache structure @@ -24,7 +24,7 @@ that has the depends pointer as a member. The provide iterator has the same system. - This header is not user includable, please use pkglib/pkgcache.h + This header is not user includable, please use apt-pkg/pkgcache.h ##################################################################### */ /*}}}*/ @@ -33,7 +33,7 @@ #define PKGLIB_CACHEITERATORS_H #ifdef __GNUG__ -#pragma interface "pkglib/cacheiterators.h" +#pragma interface "apt-pkg/cacheiterators.h" #endif // Package Iterator @@ -125,6 +125,7 @@ class pkgCache::VerIterator inline PrvIterator ProvidesList() const; inline VerFileIterator FileList() const; inline unsigned long Index() const {return Ver - Owner.VerP;}; + bool Downloadable() const; inline VerIterator(pkgCache &Owner,Version *Trg = 0) : Ver(Trg), Owner(Owner) { @@ -172,7 +173,8 @@ class pkgCache::DepIterator bool IsCritical(); Version **AllTargets(); bool SmartTargetPkg(PkgIterator &Result); - + const char *CompType(); + inline DepIterator(pkgCache &Owner,Dependency *Trg,Version * = 0) : Dep(Trg), Type(DepVer), Owner(&Owner) { @@ -300,7 +302,7 @@ class pkgCache::VerFileIterator inline PkgFileIterator File() const {return PkgFileIterator(*Owner,FileP->File + Owner->PkgFileP);}; inline unsigned long Index() const {return FileP - Owner->VerFileP;}; - + inline VerFileIterator(pkgCache &Owner,VerFile *Trg) : Owner(&Owner), FileP(Trg) {}; };