18 #ifndef CUPT_CACHE_CACHE_SEEN
19 #define CUPT_CACHE_CACHE_SEEN
27 #include <cupt/fwd.hpp>
28 #include <cupt/range.hpp>
41 using namespace cache;
55 enum Type { Source, Binary } category;
70 typedef const string value_type;
82 value_type& operator*()
const;
90 internal::CacheImpl* __impl;
103 Cache(shared_ptr< const Config > config,
bool useSource,
bool useBinary,
bool useInstalled);
108 vector< shared_ptr< const ReleaseInfo > > getBinaryReleaseData()
const;
110 vector< shared_ptr< const ReleaseInfo > > getSourceReleaseData()
const;
119 const BinaryPackage* getBinaryPackage(
const string& packageName)
const;
127 const SourcePackage* getSourcePackage(
const string& packageName)
const;
130 vector< const BinaryVersion* > getInstalledVersions()
const;
137 bool isAutomaticallyInstalled(
const string& packageName)
const;
140 vector< IndexEntry > getIndexEntries()
const;
146 ssize_t getPin(
const Version*)
const;
155 vector< PinnedVersion > getSortedPinnedVersions(
const Package*)
const;
160 vector< const BinaryVersion* > getSatisfyingVersions(
const RelationExpression&)
const;