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

#include <algorithms.h>

Collaboration diagram for pkgProblemResolver:

Classes

struct  PackageKill
 

Public Member Functions

 pkgProblemResolver (pkgDepCache *Cache)
 
 ~pkgProblemResolver ()
 
void Clear (pkgCache::PkgIterator Pkg)
 
void InstallProtect ()
 
void Protect (pkgCache::PkgIterator Pkg)
 
void Remove (pkgCache::PkgIterator Pkg)
 
bool Resolve (bool BrokenFix=false)
 
bool ResolveByKeep ()
 

Protected Member Functions

bool InstOrNewPolicyBroken (pkgCache::PkgIterator Pkg)
 

Private Types

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

Private Member Functions

bool DoUpgrade (pkgCache::PkgIterator Pkg)
 
void MakeScores ()
 
bool ResolveByKeepInternal ()
 
bool ResolveInternal (bool const BrokenFix=false)
 

Static Private Member Functions

static int ScoreSort (const void *a, const void *b)
 

Private Attributes

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

Static Private Attributes

static pkgProblemResolverThis
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
Protected 
PreInstalled 
Upgradable 
ReInstateTried 
ToRemove 

Constructor & Destructor Documentation

pkgProblemResolver::pkgProblemResolver ( pkgDepCache Cache)
pkgProblemResolver::~pkgProblemResolver ( )

Member Function Documentation

void pkgProblemResolver::Clear ( pkgCache::PkgIterator  Pkg)
inline

References Protected, and ToRemove.

bool pkgProblemResolver::DoUpgrade ( pkgCache::PkgIterator  Pkg)
private
void pkgProblemResolver::InstallProtect ( )
bool pkgProblemResolver::InstOrNewPolicyBroken ( pkgCache::PkgIterator  Pkg)
protected
void pkgProblemResolver::MakeScores ( )
private
void pkgProblemResolver::Protect ( pkgCache::PkgIterator  Pkg)
inline

References Cache, pkgDepCache::MarkProtected(), and Protected.

Here is the call graph for this function:

void pkgProblemResolver::Remove ( pkgCache::PkgIterator  Pkg)
inline

References ToRemove.

bool pkgProblemResolver::Resolve ( bool  BrokenFix = false)
bool pkgProblemResolver::ResolveByKeep ( )
bool pkgProblemResolver::ResolveByKeepInternal ( )
private
bool pkgProblemResolver::ResolveInternal ( bool const  BrokenFix = false)
private
static int pkgProblemResolver::ScoreSort ( const void *  a,
const void *  b 
)
staticprivate

Member Data Documentation

pkgDepCache& pkgProblemResolver::Cache
private

Referenced by Protect().

void* pkgProblemResolver::d
private

dpointer placeholder (for later in case we need it)

bool pkgProblemResolver::Debug
private
unsigned char* pkgProblemResolver::Flags
private
int* pkgProblemResolver::Scores
private
pkgProblemResolver* pkgProblemResolver::This
staticprivate

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