diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-10-07 16:38:03 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-10-07 16:38:03 +0200 |
commit | 4d0818cc39f7c0d44ecdfcdf9701058f81caa492 (patch) | |
tree | 63eaa546ba527209d2b2068d188800e5e4872093 /apt-pkg/cacheset.h | |
parent | ea7682a0d91fee638eef06b63045b1499ddf50ac (diff) | |
parent | 00a06b8eb82cf930511fc003bd16d7034e5a0cb5 (diff) |
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
Conflicts:
apt-pkg/acquire-item.cc
Diffstat (limited to 'apt-pkg/cacheset.h')
-rw-r--r-- | apt-pkg/cacheset.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h index 892ad2dfc..f3f1d1fc6 100644 --- a/apt-pkg/cacheset.h +++ b/apt-pkg/cacheset.h @@ -574,21 +574,21 @@ template<> template<class Compare> inline bool PackageContainer<std::vector<pkgC The wrapping is read-only in practice modeled by making erase and co private methods. */ -class PackageUniverse : public PackageContainerInterface { +class APT_HIDDEN PackageUniverse : public PackageContainerInterface { pkgCache * const _cont; public: typedef pkgCache::PkgIterator iterator; typedef pkgCache::PkgIterator const_iterator; - bool empty() const { return false; } - size_t size() const { return _cont->Head().PackageCount; } + APT_PUBLIC bool empty() const { return false; } + APT_PUBLIC size_t size() const { return _cont->Head().PackageCount; } - const_iterator begin() const { return _cont->PkgBegin(); } - const_iterator end() const { return _cont->PkgEnd(); } - iterator begin() { return _cont->PkgBegin(); } - iterator end() { return _cont->PkgEnd(); } + APT_PUBLIC const_iterator begin() const { return _cont->PkgBegin(); } + APT_PUBLIC const_iterator end() const { return _cont->PkgEnd(); } + APT_PUBLIC iterator begin() { return _cont->PkgBegin(); } + APT_PUBLIC iterator end() { return _cont->PkgEnd(); } - PackageUniverse(pkgCache * const Owner) : _cont(Owner) { } + APT_PUBLIC PackageUniverse(pkgCache * const Owner) : _cont(Owner) { } private: bool insert(pkgCache::PkgIterator const &) { return true; } |