diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-09-30 15:21:52 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-30 15:21:52 +0200 |
commit | 124dc1e996aedc0494fa67a5414b6239f1b24646 (patch) | |
tree | 0419ae9430f5e2b15c0ff9ffdce65ed23efed40c /apt-pkg/cacheset.h | |
parent | dacb75c62564f436a5f56b0a04169dc71ec3a9cd (diff) | |
parent | 440614ff30c053e3691a793556d8c674258fb58b (diff) |
Merge remote-tracking branch 'donkult/debian/experimental' into debian/experimental
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; } |