summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-12-09 19:24:03 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-12-09 19:24:03 +0100
commit773e2c1fe5fd1a315ffaaf79f2f2e4a9e975649a (patch)
treecb0b7859ac1fd4b983a699a19a41b659cb083e0e /apt-pkg/pkgcache.h
parentc6474fb6ff482b0457674986a82afab0a3749af2 (diff)
Refactor the cache iterators by using a common base class
This should not change the public interface, but it removes the friend connection between the iterators and pkgcache as it is unused.
Diffstat (limited to 'apt-pkg/pkgcache.h')
-rw-r--r--apt-pkg/pkgcache.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/apt-pkg/pkgcache.h b/apt-pkg/pkgcache.h
index e8a3e1064..359f8a590 100644
--- a/apt-pkg/pkgcache.h
+++ b/apt-pkg/pkgcache.h
@@ -43,6 +43,7 @@ class pkgCache /*{{{*/
struct DescFile;
// Iterators
+ template<typename Str, typename Itr> class Iterator;
class PkgIterator;
class VerIterator;
class DescIterator;
@@ -51,14 +52,6 @@ class pkgCache /*{{{*/
class PkgFileIterator;
class VerFileIterator;
class DescFileIterator;
- friend class PkgIterator;
- friend class VerIterator;
- friend class DescInterator;
- friend class DepIterator;
- friend class PrvIterator;
- friend class PkgFileIterator;
- friend class VerFileIterator;
- friend class DescFileIterator;
class Namespace;