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
pkgPolicy Class Reference

#include <policy.h>

Inheritance diagram for pkgPolicy:
Collaboration diagram for pkgPolicy:

Classes

struct  Pin
 
struct  PkgPin
 

Public Member Functions

 pkgPolicy (pkgCache *Owner)
 
virtual ~pkgPolicy ()
 
void CreatePin (pkgVersionMatch::MatchType Type, std::string Pkg, std::string Data, signed short Priority)
 
virtual pkgCache::VerIterator GetCandidateVer (pkgCache::PkgIterator const &Pkg)
 
pkgCache::VerIterator GetMatch (pkgCache::PkgIterator const &Pkg)
 
virtual signed short GetPriority (pkgCache::PkgIterator const &Pkg)
 
virtual signed short GetPriority (pkgCache::PkgFileIterator const &File)
 
bool InitDefaults ()
 
virtual bool IsImportantDep (DepIterator const &Dep)
 

Protected Attributes

pkgCacheCache
 
std::vector< PinDefaults
 
signed short * PFPriority
 
PinPins
 
bool StatusOverride
 
std::vector< PkgPinUnmatched
 

Constructor & Destructor Documentation

pkgPolicy::pkgPolicy ( pkgCache Owner)
virtual pkgPolicy::~pkgPolicy ( )
inlinevirtual

References PFPriority, and Pins.

Member Function Documentation

void pkgPolicy::CreatePin ( pkgVersionMatch::MatchType  Type,
std::string  Pkg,
std::string  Data,
signed short  Priority 
)
virtual pkgCache::VerIterator pkgPolicy::GetCandidateVer ( pkgCache::PkgIterator const &  Pkg)
virtual

Reimplemented from pkgDepCache::Policy.

pkgCache::VerIterator pkgPolicy::GetMatch ( pkgCache::PkgIterator const &  Pkg)
virtual signed short pkgPolicy::GetPriority ( pkgCache::PkgIterator const &  Pkg)
virtual

Reimplemented from pkgDepCache::Policy.

virtual signed short pkgPolicy::GetPriority ( pkgCache::PkgFileIterator const &  File)
virtual

Reimplemented from pkgDepCache::Policy.

bool pkgPolicy::InitDefaults ( )
virtual bool pkgDepCache::Policy::IsImportantDep ( DepIterator const &  Dep)
virtualinherited

Referenced by pkgDepCache::IsImportantDep().

Here is the caller graph for this function:

Member Data Documentation

pkgCache* pkgPolicy::Cache
protected
std::vector<Pin> pkgPolicy::Defaults
protected
signed short* pkgPolicy::PFPriority
protected

Referenced by ~pkgPolicy().

Pin* pkgPolicy::Pins
protected

Referenced by ~pkgPolicy().

bool pkgPolicy::StatusOverride
protected
std::vector<PkgPin> pkgPolicy::Unmatched
protected

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