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;
contains version and a corresponding pin value
Definition: cache.hpp:149
Package for binary versions.
Definition: binarypackage.hpp:30
string uri
base index URI, as specified in source list
Definition: cache.hpp:56
string component
component part, e.g. main, contrib, non-free
Definition: cache.hpp:58
Type
does this index entry contains source or binary packages
Definition: cache.hpp:55
stores an additional information for installed packages
Definition: state.hpp:39
ssize_t pin
pin value
Definition: cache.hpp:152
static bool memoize
controls internal caching
Definition: cache.hpp:189
describes smallest index source piece
Definition: cache.hpp:52
common version information
Definition: version.hpp:39
the source of package and version information
Definition: cache.hpp:44
package for source versions
Definition: sourcepackage.hpp:30
set< string > automaticallyInstalled
names of automatically installed packages
Definition: cache.hpp:64
extended package information
Definition: cache.hpp:62
string distribution
distribution part, e.g. lenny, squeeze
Definition: cache.hpp:57
binary version info
Definition: binaryversion.hpp:31
const Version * version
version
Definition: cache.hpp:151
group of alternative relations
Definition: relation.hpp:102
map< string, string > options
key-value options;
Definition: cache.hpp:59
a container for all versions of the same package name
Definition: package.hpp:56