summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-13 19:36:13 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-13 19:36:13 +0200
commit83852d882b05bdc21f95d7fbf76feea644499ca3 (patch)
treed63a1f58e181c23d4931c4db9133ca4662768ffc /apt-pkg/cacheiterators.h
parentdf164436e99095aee5e7df5dc8de7ef5dd1f20e9 (diff)
parent9349f80796a4b0be3ce2e732029ddd4a6558f80a (diff)
merged from debian
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r--apt-pkg/cacheiterators.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index 0be9368bd..26070636e 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -293,6 +293,9 @@ class pkgCache::DepIterator : public Iterator<Dependency, DepIterator> {
inline const char *CompType() const {return Owner->CompType(S->CompareOp);};
inline const char *DepType() const {return Owner->DepType(S->Type);};
+ //Nice printable representation
+ friend std::ostream& operator <<(std::ostream& out, DepIterator D);
+
inline DepIterator(pkgCache &Owner, Dependency *Trg, Version* = 0) :
Iterator<Dependency, DepIterator>(Owner, Trg), Type(DepVer) {
if (S == 0)