Same as APT::PackageContainerInterface, just for Versions.
More...
#include <cacheset.h>
|
static bool | FromCommandLine (VersionContainerInterface *const vci, pkgCacheFile &Cache, const char **cmdline, Version const &fallback, CacheSetHelper &helper) |
|
static bool | FromDependency (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::DepIterator const &D, Version const &selector, CacheSetHelper &helper) |
|
static bool | FromModifierCommandLine (unsigned short &modID, VersionContainerInterface *const vci, pkgCacheFile &Cache, const char *cmdline, std::list< Modifier > const &mods, CacheSetHelper &helper) |
|
static bool | FromPackage (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::PkgIterator const &P, Version const &fallback, CacheSetHelper &helper) |
|
static bool | FromString (VersionContainerInterface *const vci, pkgCacheFile &Cache, std::string pkg, Version const &fallback, CacheSetHelper &helper, bool const onlyFromName=false) |
|
specifies which version(s) will be returned if non is given
Enumerator |
---|
ALL |
All versions.
|
CANDANDINST |
Candidate and installed version.
|
CANDIDATE |
Candidate version.
|
INSTALLED |
Installed version.
|
CANDINST |
Candidate or if non installed version.
|
INSTCAND |
Installed or if non candidate version.
|
NEWEST |
Newest version.
|
virtual void APT::VersionContainerInterface::clear |
( |
| ) |
|
|
pure virtual |
virtual bool APT::VersionContainerInterface::empty |
( |
| ) |
const |
|
pure virtual |
returns the candidate version of the package
- Parameters
-
Cache | to be used to query for information |
Pkg | we want the candidate version from this package |
returns the installed version of the package
- Parameters
-
Cache | to be used to query for information |
Pkg | we want the installed version from this package |
The documentation for this class was generated from the following file: