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)  

pkgCacheFile Class Reference

#include <cachefile.h>

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

Classes

struct  Private
 

Public Member Functions

 operator pkgCache & () const
 
 operator pkgCache * () const
 
 operator pkgDepCache & () const
 
 operator pkgDepCache * () const
 
 operator pkgPolicy & () const
 
 operator pkgPolicy * () const
 
 operator pkgSourceList & () const
 
 operator pkgSourceList * () const
 
pkgDepCacheoperator-> () const
 
pkgDepCacheoperator* () const
 
pkgDepCache::StateCacheoperator[] (pkgCache::PkgIterator const &I) const
 
unsigned char & operator[] (pkgCache::DepIterator const &I) const
 
bool BuildCaches (OpProgress *Progress=NULL, bool WithLock=true)
 
bool BuildSourceList (OpProgress *Progress=NULL)
 
bool BuildPolicy (OpProgress *Progress=NULL)
 
bool BuildDepCache (OpProgress *Progress=NULL)
 
bool Open (OpProgress *Progress=NULL, bool WithLock=true)
 
bool ReadOnlyOpen (OpProgress *Progress=NULL)
 
void Close ()
 
bool AddIndexFile (pkgIndexFile *const File)
 
pkgCacheGetPkgCache ()
 
pkgDepCacheGetDepCache ()
 
pkgPolicyGetPolicy ()
 
pkgSourceListGetSourceList ()
 
bool IsPkgCacheBuilt () const
 
bool IsDepCacheBuilt () const
 
bool IsPolicyBuilt () const
 
bool IsSrcListBuilt () const
 
 pkgCacheFile ()
 
 pkgCacheFile (pkgDepCache *const Owner)
 
virtual ~pkgCacheFile ()
 

Static Public Member Functions

static void RemoveCaches ()
 

Public Attributes

pkgPolicyPolicy
 

Protected Attributes

MMapMap
 
pkgCacheCache
 
pkgDepCacheDCache
 
pkgSourceListSrcList
 

Private Attributes

Private *const d
 dpointer placeholder (for later in case we need it) More...
 
bool ExternOwner
 

Detailed Description

Definition at line 32 of file cachefile.h.

Constructor & Destructor Documentation

◆ pkgCacheFile() [1/2]

Definition at line 48 of file cachefile.cc.

◆ pkgCacheFile() [2/2]

pkgCacheFile ( pkgDepCache *const  Owner)
explicit

Definition at line 52 of file cachefile.cc.

◆ ~pkgCacheFile()

Member Function Documentation

◆ AddIndexFile()

◆ BuildCaches()

◆ BuildDepCache()

bool BuildDepCache ( OpProgress Progress = NULL)

Definition at line 187 of file cachefile.cc.

References BuildCaches(), BuildPolicy(), Cache, DCache, pkgDepCache::Init(), and Policy.

Referenced by Open().

◆ BuildPolicy()

bool BuildPolicy ( OpProgress Progress = NULL)

Definition at line 167 of file cachefile.cc.

References Cache, Policy, ReadPinDir(), and ReadPinFile().

Referenced by BuildDepCache(), DumpAvail(), FindSrc(), and Open().

◆ BuildSourceList()

bool BuildSourceList ( OpProgress Progress = NULL)

Definition at line 151 of file cachefile.cc.

References pkgSourceList::ReadMainList(), and SrcList.

Referenced by AddIndexFile(), BuildCaches(), DoBuildDep(), DoUpdate(), and InstallPackages().

◆ Close()

void Close ( )

◆ GetDepCache()

◆ GetPkgCache()

◆ GetPolicy()

◆ GetSourceList()

◆ IsDepCacheBuilt()

bool IsDepCacheBuilt ( ) const
inline

Definition at line 79 of file cachefile.h.

Referenced by VersionContainerInterface::getCandidateVer().

◆ IsPkgCacheBuilt()

bool IsPkgCacheBuilt ( ) const
inline

Definition at line 78 of file cachefile.h.

◆ IsPolicyBuilt()

bool IsPolicyBuilt ( ) const
inline

Definition at line 80 of file cachefile.h.

References Policy().

◆ IsSrcListBuilt()

bool IsSrcListBuilt ( ) const
inline

Definition at line 81 of file cachefile.h.

◆ Open()

bool Open ( OpProgress Progress = NULL,
bool  WithLock = true 
)

◆ operator pkgCache &()

operator pkgCache & ( ) const
inline

Definition at line 49 of file cachefile.h.

◆ operator pkgCache *()

operator pkgCache * ( ) const
inline

Definition at line 50 of file cachefile.h.

◆ operator pkgDepCache &()

operator pkgDepCache & ( ) const
inline

Definition at line 51 of file cachefile.h.

◆ operator pkgDepCache *()

operator pkgDepCache * ( ) const
inline

Definition at line 52 of file cachefile.h.

◆ operator pkgPolicy &()

operator pkgPolicy & ( ) const
inline

Definition at line 53 of file cachefile.h.

References Policy().

◆ operator pkgPolicy *()

operator pkgPolicy * ( ) const
inline

Definition at line 54 of file cachefile.h.

References Policy().

◆ operator pkgSourceList &()

operator pkgSourceList & ( ) const
inline

Definition at line 55 of file cachefile.h.

◆ operator pkgSourceList *()

operator pkgSourceList * ( ) const
inline

Definition at line 56 of file cachefile.h.

◆ operator*()

pkgDepCache& operator* ( ) const
inline

Definition at line 58 of file cachefile.h.

◆ operator->()

pkgDepCache* operator-> ( ) const
inline

Definition at line 57 of file cachefile.h.

◆ operator[]() [1/2]

unsigned char& operator[] ( pkgCache::DepIterator const &  I) const
inline

Definition at line 60 of file cachefile.h.

References I.

◆ operator[]() [2/2]

pkgDepCache::StateCache& operator[] ( pkgCache::PkgIterator const &  I) const
inline

Definition at line 59 of file cachefile.h.

References I.

◆ ReadOnlyOpen()

bool ReadOnlyOpen ( OpProgress Progress = NULL)
inline

Definition at line 67 of file cachefile.h.

Referenced by DoChangelog(), and DoDownload().

◆ RemoveCaches()

Member Data Documentation

◆ Cache

pkgCache* Cache
protected

◆ d

Private* const d
private

dpointer placeholder (for later in case we need it)

Definition at line 36 of file cachefile.h.

Referenced by BuildCaches(), Close(), and ~pkgCacheFile().

◆ DCache

pkgDepCache* DCache
protected

Definition at line 42 of file cachefile.h.

Referenced by AddIndexFile(), BuildDepCache(), CacheFile::CheckDeps(), Close(), and ~pkgCacheFile().

◆ ExternOwner

bool ExternOwner
private

Definition at line 37 of file cachefile.h.

Referenced by AddIndexFile(), Close(), and ~pkgCacheFile().

◆ Map

MMap* Map
protected

Definition at line 40 of file cachefile.h.

Referenced by AddIndexFile(), BuildCaches(), Close(), and ~pkgCacheFile().

◆ Policy

pkgPolicy* Policy

Definition at line 46 of file cachefile.h.

Referenced by AddIndexFile(), BuildDepCache(), BuildPolicy(), Close(), and ~pkgCacheFile().

◆ SrcList

pkgSourceList* SrcList
protected

Definition at line 43 of file cachefile.h.

Referenced by AddIndexFile(), BuildCaches(), BuildSourceList(), Close(), and ~pkgCacheFile().


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