Go to the documentation of this file.
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;
64 typedef map<string, map<string, string>> Raw;
72 typedef const string value_type;
84 value_type& operator*()
const;
92 internal::CacheImpl* __impl;
105 Cache(shared_ptr< const Config > config,
bool useSource,
bool useBinary,
bool useInstalled);
110 vector< shared_ptr< const ReleaseInfo > > getBinaryReleaseData()
const;
112 vector< shared_ptr< const ReleaseInfo > > getSourceReleaseData()
const;
121 const BinaryPackage* getBinaryPackage(
const string& packageName)
const;
129 const SourcePackage* getSourcePackage(
const string& packageName)
const;
132 vector< const BinaryVersion* > getInstalledVersions()
const;
139 bool isAutomaticallyInstalled(
const string& packageName)
const;
142 vector< IndexEntry > getIndexEntries()
const;
148 ssize_t getPin(
const Version*)
const;
157 vector<VersionWithPriority> getSortedVersionsWithPriorities(
const Package*)
const;
162 vector< const BinaryVersion* > getSatisfyingVersions(
const RelationExpression&)
const;
describes smallest index source piece
Definition: cache.hpp:52
Type
does this index entry contains source or binary packages
Definition: cache.hpp:55
extended package information
Definition: cache.hpp:62
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
static bool memoize
controls internal caching
Definition: cache.hpp:191
Package for binary versions.
Definition: binarypackage.hpp:30
common version information
Definition: version.hpp:39
a container for all versions of the same package name
Definition: package.hpp:56
contains version and its corresponding priority
Definition: cache.hpp:151
string distribution
distribution part, e.g. lenny, squeeze
Definition: cache.hpp:57
binary version info
Definition: binaryversion.hpp:31
map< string, string > options
key-value options;
Definition: cache.hpp:59
the source of package and version information
Definition: cache.hpp:44
Raw raw
all fields and values in the format "map: (package name) -> (map: field -> value)"
Definition: cache.hpp:65
group of alternative relations
Definition: relation.hpp:109
stores an additional information for installed packages
Definition: state.hpp:39
set< string > automaticallyInstalled
names of automatically installed packages
Definition: cache.hpp:66
package for source versions
Definition: sourcepackage.hpp:30