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)  

pkgProblemResolver Class Reference

#include <algorithms.h>

Collaboration diagram for pkgProblemResolver:
[legend]

Classes

struct  PackageKill
 

Public Member Functions

void Protect (pkgCache::PkgIterator Pkg)
 
void Remove (pkgCache::PkgIterator Pkg)
 
void Clear (pkgCache::PkgIterator Pkg)
 
bool Resolve (bool BrokenFix=false, OpProgress *const Progress=NULL)
 
APT_HIDDEN bool ResolveInternal (bool const BrokenFix=false)
 
bool ResolveByKeep (OpProgress *const Progress=NULL)
 
APT_HIDDEN bool ResolveByKeepInternal ()
 
 pkgProblemResolver (pkgDepCache *Cache)
 
virtual ~pkgProblemResolver ()
 

Protected Member Functions

bool InstOrNewPolicyBroken (pkgCache::PkgIterator Pkg)
 

Private Types

enum  Flags {
  Protected = (1 << 0) , PreInstalled = (1 << 1) , Upgradable = (1 << 2) , ReInstateTried = (1 << 3) ,
  ToRemove = (1 << 4)
}
 
typedef pkgCache::PkgIterator PkgIterator
 
typedef pkgCache::VerIterator VerIterator
 
typedef pkgCache::DepIterator DepIterator
 
typedef pkgCache::PrvIterator PrvIterator
 
typedef pkgCache::Version Version
 
typedef pkgCache::Package Package
 

Private Member Functions

APT_HIDDEN int ScoreSort (Package const *A, Package const *B) APT_PURE
 
APT_HIDDEN void MakeScores ()
 
APT_HIDDEN bool DoUpgrade (pkgCache::PkgIterator Pkg)
 

Private Attributes

void *const d
 dpointer placeholder (for later in case we need it) More...
 
pkgDepCacheCache
 
int * Scores
 
unsigned char * Flags
 
bool Debug
 

Detailed Description

Definition at line 92 of file algorithms.h.

Member Typedef Documentation

◆ DepIterator

typedef pkgCache::DepIterator DepIterator
private

Definition at line 101 of file algorithms.h.

◆ Package

typedef pkgCache::Package Package
private

Definition at line 104 of file algorithms.h.

◆ PkgIterator

typedef pkgCache::PkgIterator PkgIterator
private

Definition at line 99 of file algorithms.h.

◆ PrvIterator

typedef pkgCache::PrvIterator PrvIterator
private

Definition at line 102 of file algorithms.h.

◆ VerIterator

typedef pkgCache::VerIterator VerIterator
private

Definition at line 100 of file algorithms.h.

◆ Version

typedef pkgCache::Version Version
private

Definition at line 103 of file algorithms.h.

Member Enumeration Documentation

◆ Flags

enum Flags
private
Enumerator
Protected 
PreInstalled 
Upgradable 
ReInstateTried 
ToRemove 

Definition at line 106 of file algorithms.h.

Constructor & Destructor Documentation

◆ pkgProblemResolver()

◆ ~pkgProblemResolver()

~pkgProblemResolver ( )
virtual

Definition at line 426 of file algorithms.cc.

References Scores.

Member Function Documentation

◆ Clear()

void Clear ( pkgCache::PkgIterator  Pkg)
inline

Definition at line 132 of file algorithms.h.

Referenced by main(), TryToInstall::operator()(), and TryToRemove::operator()().

◆ DoUpgrade()

◆ InstOrNewPolicyBroken()

bool InstOrNewPolicyBroken ( pkgCache::PkgIterator  Pkg)
protected

Definition at line 1223 of file algorithms.cc.

References Cache, Debug, and I.

Referenced by ResolveByKeepInternal().

◆ MakeScores()

◆ Protect()

◆ Remove()

void Remove ( pkgCache::PkgIterator  Pkg)
inline

Definition at line 131 of file algorithms.h.

Referenced by main(), and TryToRemove::operator()().

◆ Resolve()

bool Resolve ( bool  BrokenFix = false,
OpProgress *const  Progress = NULL 
)

Definition at line 741 of file algorithms.cc.

References _config, Cache, EDSP::ResolveExternal(), and ResolveInternal().

Referenced by DoBuildDep(), DoDSelectUpgrade(), main(), and pkgFixBroken().

◆ ResolveByKeep()

◆ ResolveByKeepInternal()

◆ ResolveInternal()

◆ ScoreSort()

int ScoreSort ( Package const *  A,
Package const *  B 
)
private

Definition at line 435 of file algorithms.cc.

References pkgCache< Str, Itr >::Package::ID, and Scores.

Referenced by ResolveByKeepInternal().

Member Data Documentation

◆ Cache

◆ d

void* const d
private

dpointer placeholder (for later in case we need it)

Definition at line 96 of file algorithms.h.

◆ Debug

bool Debug
private

◆ Flags

unsigned char* Flags
private

Definition at line 110 of file algorithms.h.

◆ Scores

int* Scores
private

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