diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:00 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:00 +0000 |
commit | b826eb9e018b9abccea67bfa08c075a342ebe59b (patch) | |
tree | 3fc43b1760b4b36c7b3462e5202d0503411c9853 /apt-pkg/cachefile.h | |
parent | 175f08ac550f944d7a8eb9751af302ae667f1572 (diff) | |
download | apt-b826eb9e018b9abccea67bfa08c075a342ebe59b.tar.gz |
Added [] operators to cachefile
Author: jgg
Date: 1999-06-12 03:43:48 GMT
Added [] operators to cachefile
Diffstat (limited to 'apt-pkg/cachefile.h')
-rw-r--r-- | apt-pkg/cachefile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/cachefile.h b/apt-pkg/cachefile.h index 23bd4008b..4888b441c 100644 --- a/apt-pkg/cachefile.h +++ b/apt-pkg/cachefile.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: cachefile.h,v 1.1 1999/04/18 06:36:36 jgg Exp $ +// $Id: cachefile.h,v 1.2 1999/06/12 03:43:48 jgg Exp $ /* ###################################################################### CacheFile - Simple wrapper class for opening, generating and whatnot @@ -35,7 +35,9 @@ class pkgCacheFile inline operator pkgDepCache &() {return *Cache;}; inline pkgDepCache *operator ->() {return Cache;}; inline pkgDepCache &operator *() {return *Cache;}; - + inline pkgDepCache::StateCache &operator [](pkgCache::PkgIterator const &I) {return (*Cache)[I];}; + inline unsigned char &operator [](pkgCache::DepIterator const &I) {return (*Cache)[I];}; + // Release the dpkg status lock inline void ReleaseLock() {Lock->Close();}; |