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)  

pkgDepCache::StateCache Struct Reference

#include <depcache.h>

Public Member Functions

void Update (PkgIterator Pkg, pkgCache &Cache)
 
bool NewInstall () const
 
bool Delete () const
 
bool Purge () const
 
bool Keep () const
 
bool Protect () const
 
bool Upgrade () const
 
bool Upgradable () const
 
bool Downgrade () const
 
bool Held () const
 
bool NowBroken () const
 
bool NowPolicyBroken () const
 
bool InstBroken () const
 
bool InstPolicyBroken () const
 
bool Install () const
 
bool ReInstall () const
 
VerIterator InstVerIter (pkgCache &Cache)
 
VerIterator CandidateVerIter (pkgCache &Cache)
 

Public Attributes

const char * CandVersion
 
const char * CurVersion
 
VersionCandidateVer
 
VersionInstallVer
 
unsigned short Flags
 
unsigned short iFlags
 
bool Marked
 true if this package can be reached from the root set. More...
 
bool Garbage
 true if this package is unused and should be removed. More...
 
signed char Status
 
unsigned char Mode
 
unsigned char DepState
 

Detailed Description

Definition at line 211 of file depcache.h.

Member Function Documentation

◆ CandidateVerIter()

◆ Delete()

◆ Downgrade()

bool Downgrade ( ) const
inline

Definition at line 254 of file depcache.h.

References Status.

Referenced by EIPP::WriteRequest().

◆ Held()

bool Held ( ) const
inline

Definition at line 255 of file depcache.h.

References Status.

◆ Install()

◆ InstBroken()

bool InstBroken ( ) const
inline

Definition at line 258 of file depcache.h.

Referenced by TryToInstall::doAutoInstall(), and pkgDepCache::MarkInstall().

◆ InstPolicyBroken()

bool InstPolicyBroken ( ) const
inline

Definition at line 259 of file depcache.h.

Referenced by TryToInstall::doAutoInstall(), and pkgDepCache::MarkInstall().

◆ InstVerIter()

◆ Keep()

bool Keep ( ) const
inline

Definition at line 250 of file depcache.h.

Referenced by pkgDepCache::AddSizes(), IsPkgInBoringState(), and pkgDepCache::MarkInstall().

◆ NewInstall()

bool NewInstall ( ) const
inline

Definition at line 247 of file depcache.h.

References Status.

Referenced by pkgDepCache::AddSizes(), EIPP::WriteRequest(), and EDSP::WriteRequest().

◆ NowBroken()

bool NowBroken ( ) const
inline

Definition at line 256 of file depcache.h.

Referenced by GetFlagsStr().

◆ NowPolicyBroken()

bool NowPolicyBroken ( ) const
inline

Definition at line 257 of file depcache.h.

◆ Protect()

bool Protect ( ) const
inline

◆ Purge()

bool Purge ( ) const
inline

Definition at line 249 of file depcache.h.

References pkgDepCache::Purge.

Referenced by EIPP::WriteRequest().

◆ ReInstall()

bool ReInstall ( ) const
inline

Definition at line 261 of file depcache.h.

References pkgDepCache::ReInstall.

Referenced by EIPP::WriteRequest(), and EDSP::WriteRequest().

◆ Update()

◆ Upgradable()

bool Upgradable ( ) const
inline

Definition at line 253 of file depcache.h.

References Status.

Referenced by DoUpdate(), GetFlagsStr(), GetLocalitySortedVersionSet(), GetVersion(), and ListSingleVersion().

◆ Upgrade()

bool Upgrade ( ) const
inline

Definition at line 252 of file depcache.h.

References Status.

Referenced by EIPP::WriteRequest(), and EDSP::WriteRequest().

Member Data Documentation

◆ CandidateVer

◆ CandVersion

const char* CandVersion

Definition at line 214 of file depcache.h.

Referenced by Update().

◆ CurVersion

const char* CurVersion

Definition at line 215 of file depcache.h.

Referenced by Update().

◆ DepState

unsigned char DepState

Definition at line 241 of file depcache.h.

Referenced by pkgDepCache::AddStates(), and pkgDepCache::UpdateVerState().

◆ Flags

◆ Garbage

bool Garbage

true if this package is unused and should be removed.

This differs from !Marked, because it is possible that some unreachable packages will be protected from becoming garbage.

Definition at line 236 of file depcache.h.

Referenced by ListSingleVersion(), pkgDepCache::MarkRequired(), and pkgDepCache::Sweep().

◆ iFlags

◆ InstallVer

◆ Marked

bool Marked

true if this package can be reached from the root set.

Definition at line 228 of file depcache.h.

Referenced by pkgDepCache::MarkKeep(), pkgDepCache::MarkPackage(), pkgDepCache::MarkRequired(), and pkgDepCache::Sweep().

◆ Mode

◆ Status

signed char Status

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