libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
APT::VersionContainerInterface Class Referenceabstract

Same as APT::PackageContainerInterface, just for Versions. More...

#include <cacheset.h>

Inheritance diagram for APT::VersionContainerInterface:

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 void clear ()=0
 
virtual bool empty () const =0
 
virtual bool insert (pkgCache::VerIterator const &V)=0
 

Static Public Member Functions

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)
 

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

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

virtual void APT::VersionContainerInterface::clear ( )
pure virtual
virtual bool APT::VersionContainerInterface::empty ( ) const
pure virtual
static bool APT::VersionContainerInterface::FromCommandLine ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
const char **  cmdline,
Version const &  fallback,
CacheSetHelper helper 
)
static

Referenced by APT::VersionContainer< Container >::FromCommandLine().

Here is the caller graph for this function:

static bool APT::VersionContainerInterface::FromDependency ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
pkgCache::DepIterator const &  D,
Version const &  selector,
CacheSetHelper helper 
)
static

Referenced by APT::VersionContainer< Container >::FromDependency().

Here is the caller graph for this function:

static bool APT::VersionContainerInterface::FromModifierCommandLine ( unsigned short &  modID,
VersionContainerInterface *const  vci,
pkgCacheFile Cache,
const char *  cmdline,
std::list< Modifier > const &  mods,
CacheSetHelper helper 
)
static

Referenced by APT::VersionContainer< Container >::GroupedFromCommandLine().

Here is the caller graph for this function:

static bool APT::VersionContainerInterface::FromPackage ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
pkgCache::PkgIterator const &  P,
Version const &  fallback,
CacheSetHelper helper 
)
static

Referenced by APT::VersionContainer< Container >::FromPackage().

Here is the caller graph for this function:

static bool APT::VersionContainerInterface::FromString ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
std::string  pkg,
Version const &  fallback,
CacheSetHelper helper,
bool const  onlyFromName = false 
)
static

Referenced by APT::VersionContainer< Container >::FromString().

Here is the caller graph for this function:

static pkgCache::VerIterator APT::VersionContainerInterface::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
static pkgCache::VerIterator APT::VersionContainerInterface::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
virtual bool APT::VersionContainerInterface::insert ( pkgCache::VerIterator const &  V)
pure virtual

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