apt
1.5
|
Classes | |
class | const_iterator |
smell like a pkgCache::VerIterator More... | |
class | iterator |
Public Member Functions | |
bool | insert (pkgCache::VerIterator const &V) |
template<class Cont > | |
void | insert (VersionContainer< Cont > const &vercont) |
void | insert (const_iterator begin, const_iterator end) |
bool | empty () const |
void | clear () |
void | erase (iterator position) |
iterator & | erase (iterator &position, bool) |
size_t | erase (const pkgCache::VerIterator x) |
void | erase (iterator first, iterator last) |
size_t | size () const |
const_iterator | begin () const |
const_iterator | end () const |
iterator | begin () |
iterator | end () |
const_iterator | find (pkgCache::VerIterator const &V) const |
template<> | |
void | insert (VersionContainer< Cont > const &vercont) |
template<> | |
bool | insert (pkgCache::VerIterator const &V) |
template<> | |
void | insert (const_iterator begin, const_iterator end) |
Static Public Member Functions | |
static VersionContainer | FromCommandLine (pkgCacheFile &Cache, const char **cmdline, Version const &fallback, CacheSetHelper &helper) |
returns all versions specified on the commandline | |
static VersionContainer | FromCommandLine (pkgCacheFile &Cache, const char **cmdline, Version const &fallback) |
static VersionContainer | FromCommandLine (pkgCacheFile &Cache, const char **cmdline) |
static VersionContainer | FromString (pkgCacheFile &Cache, std::string const &pkg, Version const &fallback, CacheSetHelper &helper, bool const onlyFromName=false) |
static VersionContainer | FromString (pkgCacheFile &Cache, std::string pkg, Version const &fallback) |
static VersionContainer | FromString (pkgCacheFile &Cache, std::string pkg) |
static VersionContainer | FromPackage (pkgCacheFile &Cache, pkgCache::PkgIterator const &P, Version const &fallback, CacheSetHelper &helper) |
returns all versions specified for the package | |
static VersionContainer | FromPackage (pkgCacheFile &Cache, pkgCache::PkgIterator const &P, Version const &fallback) |
static VersionContainer | FromPackage (pkgCacheFile &Cache, pkgCache::PkgIterator const &P) |
static std::map< unsigned short, VersionContainer > | GroupedFromCommandLine (pkgCacheFile &Cache, const char **cmdline, std::list< Modifier > const &mods, unsigned short const fallback, CacheSetHelper &helper) |
static std::map< unsigned short, VersionContainer > | GroupedFromCommandLine (pkgCacheFile &Cache, const char **cmdline, std::list< Modifier > const &mods, unsigned short const fallback) |
static VersionContainer | FromDependency (pkgCacheFile &Cache, pkgCache::DepIterator const &D, Version const &selector, CacheSetHelper &helper) |
static VersionContainer | FromDependency (pkgCacheFile &Cache, pkgCache::DepIterator const &D, Version const &selector) |
static VersionContainer | FromDependency (pkgCacheFile &Cache, pkgCache::DepIterator const &D) |
Simple wrapper around a container class like std::set to provide a similar interface to a set of versions as to the complete set of all versions in the pkgCache.
static VersionContainer FromCommandLine | ( | pkgCacheFile & | Cache, |
const char ** | cmdline, | ||
Version const & | fallback, | ||
CacheSetHelper & | helper | ||
) | [inline, static] |
returns all versions specified on the commandline
Get all versions from the commandline, uses given default version if non specifically requested and executes regex's if needed on names.
Cache | the packages and versions are in |
cmdline | Command line the versions should be extracted from |
helper | responsible for error and message handling |
static VersionContainer FromPackage | ( | pkgCacheFile & | Cache, |
pkgCache::PkgIterator const & | P, | ||
Version const & | fallback, | ||
CacheSetHelper & | helper | ||
) | [inline, static] |
returns all versions specified for the package
Cache | the package and versions are in |
P | the package in question |
fallback | the version(s) you want to get |
helper | the helper used for display and error handling |