apt  0.9.14
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
VersionContainerInterface Class Referenceabstract
Inheritance diagram for VersionContainerInterface:
VersionContainer< Container >

Classes

class  const_iterator
 smell like a pkgCache::VerIterator More...
 
struct  Modifier
 

Public Types

enum  Version {
  ALL, CANDANDINST, CANDIDATE, INSTALLED,
  CANDINST, INSTCAND, NEWEST
}
 specifies which version(s) will be returned if non is given More...
 

Public Member Functions

virtual bool insert (pkgCache::VerIterator const &V)=0
 
virtual bool empty () const =0
 
virtual void clear ()=0
 

Static Public Member Functions

static bool FromCommandLine (VersionContainerInterface *const vci, pkgCacheFile &Cache, const char **cmdline, 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)
 
static bool FromPackage (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::PkgIterator const &P, Version const &fallback, 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 FromDependency (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::DepIterator const &D, Version const &selector, CacheSetHelper &helper)
 

Static Protected Member Functions

static pkgCache::VerIterator getCandidateVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg, CacheSetHelper &helper)
 returns the candidate version of the package More...
 
static pkgCache::VerIterator getInstalledVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg, CacheSetHelper &helper)
 returns the installed version of the package More...
 

Detailed Description

Same as APT::PackageContainerInterface, just for Versions

Member Enumeration Documentation

enum Version

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

Member Function Documentation

pkgCache::VerIterator getCandidateVer ( pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg,
CacheSetHelper helper 
)
staticprotected

returns the candidate version of the package

Parameters
Cacheto be used to query for information
Pkgwe want the candidate version from this package
pkgCache::VerIterator getInstalledVer ( pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg,
CacheSetHelper helper 
)
staticprotected

returns the installed version of the package

Parameters
Cacheto be used to query for information
Pkgwe want the installed version from this package

The documentation for this class was generated from the following files: