X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f55ece0eae40e44dca027528a6f11091279d72b3..f17ac0977167d1e58316d3b3f7159f65d40a090a:/apt-pkg/pkgcachegen.h diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index 093f979d7..8ffb277c6 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.h,v 1.10 1998/08/09 00:51:34 jgg Exp $ +// $Id: pkgcachegen.h,v 1.12 1999/02/23 06:46:24 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -31,6 +31,10 @@ class OpProgress; class pkgCacheGenerator { + private: + + pkgCache::StringItem *UniqHash[26]; + public: class ListParser; @@ -57,7 +61,9 @@ class pkgCacheGenerator bool SelectFile(string File,unsigned long Flags = 0); bool MergeList(ListParser &List); inline pkgCache &GetCache() {return Cache;}; - + inline pkgCache::PkgFileIterator GetCurFile() + {return pkgCache::PkgFileIterator(Cache,CurrentFile);}; + pkgCacheGenerator(DynamicMMap &Map,OpProgress &Progress); ~pkgCacheGenerator(); }; @@ -72,6 +78,10 @@ class pkgCacheGenerator::ListParser pkgCacheGenerator *Owner; friend pkgCacheGenerator; + // Some cache items + pkgCache::VerIterator OldDepVer; + __apt_ptrloc *OldDepLast; + protected: inline unsigned long WriteUniqString(string S) {return Owner->WriteUniqString(S);};