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

#include <pkgcache.h>

Collaboration diagram for pkgCache:

Classes

struct  Dep
 
struct  Dependency
 information for a single dependency record More...
 
class  DepIterator
 
struct  DescFile
 associates a description with a Translation file More...
 
class  DescFileIterator
 
class  DescIterator
 
struct  Description
 datamember of a linked list of available description for a version More...
 
struct  Flag
 
struct  Group
 groups architecture depending packages together More...
 
class  GrpIterator
 
struct  Header
 
class  Iterator
 
class  Namespace
 
struct  Package
 contains information for a single unique package More...
 
struct  PackageFile
 stores information about the files used to generate the cache More...
 
class  PkgFileIterator
 
class  PkgIterator
 
struct  Provides
 handles virtual packages More...
 
class  PrvIterator
 
struct  State
 
struct  StringItem
 used for generating single instances of strings More...
 
struct  VerFile
 associates a version with a PackageFile More...
 
class  VerFileIterator
 
class  VerIterator
 
struct  Version
 information for a single version of a package More...
 

Public Member Functions

 pkgCache (MMap *Map, bool DoMap=true)
 
virtual ~pkgCache ()
 
void * DataEnd ()
 
PkgFileIterator FileBegin ()
 
PkgFileIterator FileEnd ()
 
GrpIterator FindGrp (const std::string &Name)
 
PkgIterator FindPkg (const std::string &Name)
 
PkgIterator FindPkg (const std::string &Name, const std::string &Arch)
 
MMapGetMap ()
 
GrpIterator GrpBegin ()
 
GrpIterator GrpEnd ()
 
unsigned long Hash (const std::string &S) const
 
unsigned long Hash (const char *S) const
 
HeaderHead ()
 
bool MultiArchCache () const
 
char const *const NativeArch () const
 
PkgIterator PkgBegin ()
 
PkgIterator PkgEnd ()
 
const char * Priority (unsigned char Priority)
 
virtual bool ReMap (bool const &Errorchecks=true)
 
bool Sync ()
 

Static Public Member Functions

static const char * CompType (unsigned char Comp)
 
static const char * CompTypeDeb (unsigned char Comp)
 
static const char * DepType (unsigned char Dep)
 

Public Attributes

DependencyDepP
 
DescFileDescFileP
 
DescriptionDescP
 
GroupGrpP
 
HeaderHeaderP
 
PackageFilePkgFileP
 
PackagePkgP
 
ProvidesProvideP
 
StringItemStringItemP
 
char * StrP
 
VerFileVerFileP
 
VersionVerP
 
pkgVersioningSystemVS
 

Protected Member Functions

unsigned long sHash (const std::string &S) const
 
unsigned long sHash (const char *S) const
 

Protected Attributes

std::string CacheFile
 
MMapMap
 

Private Member Functions

PkgIterator SingleArchFindPkg (const std::string &Name)
 

Private Attributes

bool MultiArchEnabled
 

Constructor & Destructor Documentation

pkgCache::pkgCache ( MMap Map,
bool  DoMap = true 
)
virtual pkgCache::~pkgCache ( )
inlinevirtual

Member Function Documentation

static const char* pkgCache::CompType ( unsigned char  Comp)
static

Referenced by pkgCache::DepIterator::CompType().

Here is the caller graph for this function:

static const char* pkgCache::CompTypeDeb ( unsigned char  Comp)
static
void* pkgCache::DataEnd ( )
inline

References MMap::Data(), and MMap::Size().

Here is the call graph for this function:

static const char* pkgCache::DepType ( unsigned char  Dep)
static

Referenced by pkgCache::DepIterator::DepType().

Here is the caller graph for this function:

pkgCache::PkgFileIterator pkgCache::FileBegin ( )
inline
pkgCache::PkgFileIterator pkgCache::FileEnd ( )
inline

References PkgFileP.

GrpIterator pkgCache::FindGrp ( const std::string &  Name)

Referenced by pkgDepCache::FindGrp().

Here is the caller graph for this function:

PkgIterator pkgCache::FindPkg ( const std::string &  Name)

Referenced by pkgDepCache::FindPkg().

Here is the caller graph for this function:

PkgIterator pkgCache::FindPkg ( const std::string &  Name,
const std::string &  Arch 
)
MMap& pkgCache::GetMap ( )
inline

References Map.

pkgCache::GrpIterator pkgCache::GrpBegin ( )
inline

Referenced by pkgDepCache::GrpBegin().

Here is the caller graph for this function:

pkgCache::GrpIterator pkgCache::GrpEnd ( )
inline

References GrpP.

unsigned long pkgCache::Hash ( const std::string &  S) const
inline

References sHash().

Here is the call graph for this function:

unsigned long pkgCache::Hash ( const char *  S) const
inline

References sHash().

Here is the call graph for this function:

Header& pkgCache::Head ( )
inline

References HeaderP.

bool pkgCache::MultiArchCache ( ) const
inline

References MultiArchEnabled.

char const *const pkgCache::NativeArch ( ) const
inline
pkgCache::PkgIterator pkgCache::PkgBegin ( )
inline

Referenced by pkgDepCache::PkgBegin().

Here is the caller graph for this function:

pkgCache::PkgIterator pkgCache::PkgEnd ( )
inline

References PkgP.

const char* pkgCache::Priority ( unsigned char  Priority)

Referenced by pkgCache::VerIterator::PriorityType().

Here is the caller graph for this function:

virtual bool pkgCache::ReMap ( bool const &  Errorchecks = true)
virtual
unsigned long pkgCache::sHash ( const std::string &  S) const
protected

Referenced by Hash().

Here is the caller graph for this function:

unsigned long pkgCache::sHash ( const char *  S) const
protected
PkgIterator pkgCache::SingleArchFindPkg ( const std::string &  Name)
private
bool pkgCache::Sync ( )
inline

References MMap::Sync().

Here is the call graph for this function:

Member Data Documentation

std::string pkgCache::CacheFile
protected
Header* pkgCache::HeaderP
MMap& pkgCache::Map
protected

Referenced by GetMap().

bool pkgCache::MultiArchEnabled
private

Referenced by MultiArchCache().

StringItem* pkgCache::StringItemP
pkgVersioningSystem* pkgCache::VS

Referenced by pkgDepCache::VS().


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