apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

pkgPolicy Class Reference

#include <policy.h>

Inheritance diagram for pkgPolicy:
[legend]
Collaboration diagram for pkgPolicy:
[legend]

Classes

struct  Pin
 
struct  PkgPin
 
struct  Private
 

Public Member Functions

void CreatePin (pkgVersionMatch::MatchType Type, std::string Pkg, std::string Data, signed short Priority)
 
virtual pkgCache::VerIterator GetCandidateVer (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE
 
virtual signed short GetPriority (pkgCache::VerIterator const &Ver, bool ConsiderFiles=true) APT_OVERRIDE
 
virtual signed short GetPriority (pkgCache::PkgFileIterator const &File) APT_OVERRIDE
 
void SetPriority (pkgCache::VerIterator const &Ver, signed short Priority)
 
void SetPriority (pkgCache::PkgFileIterator const &File, signed short Priority)
 
bool InitDefaults ()
 
 pkgPolicy (pkgCache *Owner)
 
virtual ~pkgPolicy ()
 
- Public Member Functions inherited from pkgDepCache::Policy
 Policy ()
 
virtual bool IsImportantDep (DepIterator const &Dep) const
 
virtual signed short GetPriority (PkgIterator const &Pkg)
 
virtual ~Policy ()
 

Protected Attributes

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

Private Attributes

Private *const d
 

Detailed Description

Definition at line 43 of file policy.h.

Constructor & Destructor Documentation

◆ pkgPolicy()

◆ ~pkgPolicy()

~pkgPolicy ( )
virtual

Definition at line 496 of file policy.cc.

References d, PFPriority, and VerPins.

Member Function Documentation

◆ CreatePin()

◆ GetCandidateVer()

◆ GetPriority() [1/2]

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

Reimplemented from pkgDepCache::Policy.

Definition at line 347 of file policy.cc.

References PFPriority.

◆ GetPriority() [2/2]

◆ InitDefaults()

◆ SetPriority() [1/2]

void SetPriority ( pkgCache::PkgFileIterator const &  File,
signed short  Priority 
)

Definition at line 361 of file policy.cc.

References PFPriority.

◆ SetPriority() [2/2]

void SetPriority ( pkgCache::VerIterator const &  Ver,
signed short  Priority 
)

Definition at line 354 of file policy.cc.

References pkgPolicy::Pin::Data, pkgPolicy::Pin::Priority, and VerPins.

Member Data Documentation

◆ Cache

pkgCache* Cache
protected

Definition at line 65 of file policy.h.

Referenced by CreatePin(), GetCandidateVer(), InitDefaults(), and pkgPolicy().

◆ d

Private* const d
private

Definition at line 87 of file policy.h.

Referenced by GetPriority(), pkgPolicy(), and ~pkgPolicy().

◆ Defaults

std::vector<Pin> Defaults
protected

Definition at line 63 of file policy.h.

Referenced by CreatePin(), and InitDefaults().

◆ PFPriority

signed short* PFPriority
protected

Definition at line 62 of file policy.h.

Referenced by GetPriority(), InitDefaults(), pkgPolicy(), SetPriority(), and ~pkgPolicy().

◆ StatusOverride

bool StatusOverride
protected

Definition at line 66 of file policy.h.

Referenced by InitDefaults().

◆ Unmatched

std::vector<PkgPin> Unmatched
protected

Definition at line 64 of file policy.h.

Referenced by CreatePin().

◆ VerPins

Pin* VerPins
protected

Definition at line 61 of file policy.h.

Referenced by CreatePin(), GetPriority(), pkgPolicy(), SetPriority(), and ~pkgPolicy().


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