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)  

pkgCache< Str, Itr > Class Template Reference

#include <cacheiterators.h>

Inheritance diagram for pkgCache< Str, Itr >:
[legend]
Collaboration diagram for pkgCache< Str, Itr >:
[legend]

Classes

struct  Dep
 
struct  Dependency
 
struct  DependencyData
 information for a single dependency record More...
 
struct  DependencyProxy
 
struct  DescFile
 associates a description with a Translation file More...
 
struct  Description
 datamember of a linked list of available description for a version More...
 
struct  Flag
 
struct  Group
 groups architecture depending packages together More...
 
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...
 
struct  Provides
 handles virtual packages More...
 
struct  ReleaseFile
 stores information about the release files used to generate the cache More...
 
struct  State
 
struct  VerFile
 associates a version with a PackageFile More...
 
struct  Version
 information for a single version of a package More...
 

Public Types

enum  OkState { NeedsNothing , NeedsUnpack , NeedsConfigure }
 

Public Member Functions

bool end () const
 
bool operator== (const Itr &B) const
 
bool operator!= (const Itr &B) const
 
Str * operator-> ()
 
Str const * operator-> () const
 
 operator Str * ()
 
 operator Str const * () const
 
Str & operator* ()
 
Str const & operator* () const
 
pkgCacheCache () const
 
bool IsGood () const
 
unsigned long Index () const
 
map_pointer< Str > MapPointer () const
 
void ReMap (void const *const oldMap, void *const newMap)
 
 Iterator ()
 
 Iterator (pkgCache &Owner, Str *T=0)
 
GroupOwnerPointer () const
 
 GrpIterator (pkgCache &Owner)
 
GrpIteratoroperator++ ()
 
GrpIterator operator++ (int)
 
const char * Name () const
 
PkgIterator PackageList () const
 
VerIterator VersionsInSource () const
 
PkgIterator FindPkg (APT::StringView Arch=APT::StringView("any", 3)) const
 
PkgIterator FindPreferredPkg (bool const &PreferNonVirtual=true) const
 find the package with the "best" architecture More...
 
PkgIterator NextPkg (PkgIterator const &Pkg) const
 
 GrpIterator (pkgCache &Owner, Group *Trg)
 
 GrpIterator ()
 
PackageOwnerPointer () const
 
 PkgIterator (pkgCache &Owner)
 
PkgIteratoroperator++ ()
 
PkgIterator operator++ (int)
 
const char * Name () const
 
bool Purge () const
 
const char * Arch () const
 
APT_PURE GrpIterator Group () const
 
VerIterator VersionList () const APT_PURE
 
VerIterator CurrentVer () const APT_PURE
 
DepIterator RevDependsList () const APT_PURE
 
PrvIterator ProvidesList () const APT_PURE
 
OkState State () const APT_PURE
 
const char * CurVersion () const APT_PURE
 
 PkgIterator (pkgCache &Owner, Package *Trg)
 
 PkgIterator ()
 
VersionOwnerPointer () const
 
VerIteratoroperator++ ()
 
VerIterator operator++ (int)
 
VerIterator NextInSource ()
 
int CompareVer (const VerIterator &B) const
 
bool SimilarVer (const VerIterator &B) const
 compares two version and returns if they are similar More...
 
const char * VerStr () const
 
const char * Section () const
 
const char * SourcePkgName () const
 source package name this version comes from Always contains the name, even if it is the same as the binary name More...
 
const char * SourceVerStr () const
 source version this version comes from Always contains the version string, even if it is the same as the binary version More...
 
const char * Arch () const
 
PkgIterator ParentPkg () const
 
DescIterator DescriptionList () const
 
DescIterator TranslatedDescriptionForLanguage (APT::StringView lang) const
 
DescIterator TranslatedDescription () const
 
DepIterator DependsList () const
 
PrvIterator ProvidesList () const
 
VerFileIterator FileList () const
 
bool Downloadable () const
 
const char * PriorityType () const
 
const char * MultiArchType () const APT_PURE
 
std::string RelStr () const
 
bool Automatic () const
 
VerFileIterator NewestFile () const
 
 VerIterator (pkgCache &Owner, Version *Trg=0)
 
 VerIterator ()
 
DescriptionOwnerPointer () const
 
DescIteratoroperator++ ()
 
DescIterator operator++ (int)
 
int CompareDesc (const DescIterator &B) const
 
const char * LanguageCode () const
 
const char * md5 () const
 
DescFileIterator FileList () const
 
 DescIterator ()
 
 DescIterator (pkgCache &Owner, Description *Trg=0)
 
DependencyOwnerPointer () const
 
DepIteratoroperator++ ()
 
DepIterator operator++ (int)
 
const char * TargetVer () const
 
PkgIterator TargetPkg () const
 
PkgIterator SmartTargetPkg () const
 
VerIterator ParentVer () const
 
PkgIterator ParentPkg () const
 
bool Reverse () const
 
bool IsCritical () const APT_PURE
 
bool IsNegative () const APT_PURE
 
bool IsIgnorable (PrvIterator const &Prv) const APT_PURE
 
bool IsIgnorable (PkgIterator const &Pkg) const APT_PURE
 
bool IsMultiArchImplicit () const APT_PURE
 
bool IsImplicit () const APT_PURE
 
bool IsSatisfied (VerIterator const &Ver) const APT_PURE
 
bool IsSatisfied (PrvIterator const &Prv) const APT_PURE
 
void GlobOr (DepIterator &Start, DepIterator &End)
 
Version ** AllTargets () const
 
bool SmartTargetPkg (PkgIterator &Result) const
 
const char * CompType () const
 
const char * DepType () const
 
DependencyProxy operator-> () const
 
DependencyProxy operator-> ()
 
void ReMap (void const *const oldMap, void *const newMap)
 
 DepIterator (pkgCache &Owner, Dependency *Trg, Package *)
 
 DepIterator ()
 
ProvidesOwnerPointer () const
 
PrvIteratoroperator++ ()
 
PrvIterator operator++ (int)
 
const char * Name () const
 
const char * ProvideVersion () const
 
PkgIterator ParentPkg () const
 
VerIterator OwnerVer () const
 
PkgIterator OwnerPkg () const
 
bool IsMultiArchImplicit () const APT_PURE
 
 PrvIterator ()
 
 PrvIterator (pkgCache &Owner, Provides *Trg, Version *)
 
 PrvIterator (pkgCache &Owner, Provides *Trg, Package *)
 
ReleaseFileOwnerPointer () const
 
RlsFileIteratoroperator++ ()
 
RlsFileIterator operator++ (int)
 
const char * FileName () const
 
const char * Archive () const
 
const char * Version () const
 
const char * Origin () const
 
const char * Codename () const
 
const char * Label () const
 
const char * Site () const
 
bool Flagged (pkgCache::Flag::ReleaseFileFlags const flag) const
 
std::string RelStr ()
 
 RlsFileIterator ()
 
 RlsFileIterator (pkgCache &Owner)
 
 RlsFileIterator (pkgCache &Owner, ReleaseFile *Trg)
 
PackageFileOwnerPointer () const
 
PkgFileIteratoroperator++ ()
 
PkgFileIterator operator++ (int)
 
const char * FileName () const
 
pkgCache::RlsFileIterator ReleaseFile () const
 
const char * Archive () const
 
const char * Version () const
 
const char * Origin () const
 
const char * Codename () const
 
const char * Label () const
 
const char * Site () const
 
bool Flagged (pkgCache::Flag::ReleaseFileFlags const flag) const
 
bool Flagged (pkgCache::Flag::PkgFFlags const flag) const
 
const char * Component () const
 
const char * Architecture () const
 
const char * IndexType () const
 
std::string RelStr ()
 
 PkgFileIterator ()
 
 PkgFileIterator (pkgCache &Owner)
 
 PkgFileIterator (pkgCache &Owner, PackageFile *Trg)
 
VerFileOwnerPointer () const
 
VerFileIteratoroperator++ ()
 
VerFileIterator operator++ (int)
 
PkgFileIterator File () const
 
 VerFileIterator ()
 
 VerFileIterator (pkgCache &Owner, VerFile *Trg)
 
DescFileOwnerPointer () const
 
DescFileIteratoroperator++ ()
 
DescFileIterator operator++ (int)
 
PkgFileIterator File () const
 
 DescFileIterator ()
 
 DescFileIterator (pkgCache &Owner, DescFile *Trg)
 
virtual bool ReMap (bool const &Errorchecks=true)
 
bool Sync ()
 
MMapGetMap ()
 
void * DataEnd ()
 
map_id_t Hash (APT::StringView S) const
 
APT_HIDDEN uint32_t CacheHash ()
 
GrpIterator FindGrp (APT::StringView Name)
 
PkgIterator FindPkg (APT::StringView Name)
 
PkgIterator FindPkg (APT::StringView Name, APT::StringView Arch)
 
APT::StringView ViewString (map_stringitem_t idx) const
 
HeaderHead ()
 
GrpIterator GrpBegin ()
 
GrpIterator GrpEnd ()
 
PkgIterator PkgBegin ()
 
PkgIterator PkgEnd ()
 
PkgFileIterator FileBegin ()
 
PkgFileIterator FileEnd ()
 
RlsFileIterator RlsFileBegin ()
 
RlsFileIterator RlsFileEnd ()
 
bool MultiArchCache () const
 
char const * NativeArch ()
 
 pkgCache (MMap *Map, bool DoMap=true)
 
virtual ~pkgCache ()
 

Static Public Member Functions

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

Public Attributes

HeaderHeaderP
 
GroupGrpP
 
PackagePkgP
 
VerFileVerFileP
 
DescFileDescFileP
 
ReleaseFileRlsFileP
 
PackageFilePkgFileP
 
VersionVerP
 
DescriptionDescP
 
ProvidesProvideP
 
DependencyDepP
 
DependencyDataDepDataP
 
char * StrP
 
void * reserved [12]
 
pkgVersioningSystemVS
 

Protected Member Functions

map_id_t sHash (APT::StringView S) const APT_PURE
 

Protected Attributes

Str * S
 
pkgCacheOwner
 
std::string CacheFile
 
MMapMap
 

Private Types

enum  { DepVer , DepRev }
 
enum  { PrvVer , PrvPkg }
 

Private Member Functions

Str * OwnerPointer () const
 Returns the Pointer for this struct in the owner The implementation of this method should be pretty short as it will only return the Pointer into the mmap stored in the owner but the name of this pointer is different for each structure and we want to abstract here at least for the basic methods from the actual structure. More...
 

Private Attributes

long HashIndex
 
enum pkgCache:: { ... }  Type
 
DependencyDataS2
 
enum pkgCache:: { ... }  Type
 
void *const d
 
bool MultiArchEnabled
 

Friends

APT_DEPRECATED_MSG("Use APT::PrettyPkg instead") friend std std::string FullName (bool const &Pretty=false) const
 
APT_DEPRECATED_MSG("Use APT::PrettyDep instead") friend std DepIterator (pkgCache &Owner, Dependency *Trg, Version *=0)
 

Detailed Description

template<typename Str, typename Itr>
class pkgCache< Str, Itr >

Definition at line 47 of file cacheiterators.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
DepVer 
DepRev 

Definition at line 294 of file cacheiterators.h.

◆ anonymous enum

anonymous enum
private
Enumerator
PrvVer 
PrvPkg 

Definition at line 379 of file cacheiterators.h.

◆ OkState

enum OkState
Enumerator
NeedsNothing 
NeedsUnpack 
NeedsConfigure 

Definition at line 159 of file cacheiterators.h.

Constructor & Destructor Documentation

◆ pkgCache()

pkgCache ( MMap Map,
bool  DoMap = true 
)

◆ ~pkgCache()

~pkgCache ( )
virtual

Definition at line 1010 of file pkgcache.cc.

Member Function Documentation

◆ AllTargets()

Version** AllTargets ( ) const

◆ Arch() [1/2]

const char* Arch ( ) const
inline

Definition at line 165 of file cacheiterators.h.

Referenced by pkgCache< Str, Itr >::FindPkg().

◆ Arch() [2/2]

const char* Arch ( ) const
inline

◆ Architecture()

const char* Architecture ( ) const
inline

Definition at line 470 of file cacheiterators.h.

◆ Archive() [1/2]

const char* Archive ( ) const
inline

Definition at line 431 of file cacheiterators.h.

◆ Archive() [2/2]

const char* Archive ( ) const
inline

◆ Automatic()

bool Automatic ( ) const

◆ Cache()

◆ CacheHash()

◆ Codename() [1/2]

const char* Codename ( ) const
inline

Definition at line 434 of file cacheiterators.h.

◆ Codename() [2/2]

const char* Codename ( ) const
inline

Definition at line 464 of file cacheiterators.h.

References pkgCache< Str, Itr >::ReleaseFile().

◆ CompareDesc()

int CompareDesc ( const DescIterator B) const

◆ CompareVer()

int CompareVer ( const VerIterator B) const

◆ Component()

const char* Component ( ) const
inline

Definition at line 469 of file cacheiterators.h.

Referenced by pkgCache< Str, Itr >::Archive().

◆ CompType() [1/2]

const char* CompType ( ) const
inline

Definition at line 332 of file cacheiterators.h.

References pkgCache< Str, Itr >::DependencyData::CompareOp.

◆ CompType() [2/2]

const char * CompType ( unsigned char  Comp)
static

Definition at line 329 of file pkgcache.cc.

◆ CompTypeDeb()

const char * CompTypeDeb ( unsigned char  Comp)
static

◆ CurrentVer()

VerIterator CurrentVer ( ) const
inline

◆ CurVersion()

const char* CurVersion ( ) const

◆ DataEnd()

void* DataEnd ( )
inline

Definition at line 239 of file pkgcache.h.

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

◆ DependsList()

DepIterator DependsList ( ) const
inline

◆ DepIterator() [1/2]

◆ DepIterator() [2/2]

DepIterator ( pkgCache< Str, Itr > &  Owner,
Dependency Trg,
Package  
)
inline

Definition at line 369 of file cacheiterators.h.

References pkgCache< Str, Itr >::DepP.

◆ DepType() [1/2]

const char* DepType ( ) const
inline

Definition at line 333 of file cacheiterators.h.

References pkgCache< Str, Itr >::DependencyData::Type.

◆ DepType() [2/2]

const char * DepType ( unsigned char  Dep)
static

Definition at line 340 of file pkgcache.cc.

References pkgCache< Str, Itr >::Type.

◆ DescFileIterator() [1/2]

DescFileIterator ( )
inline

Definition at line 513 of file cacheiterators.h.

Referenced by pkgCacheGenerator::NewFileDesc(), and Search().

◆ DescFileIterator() [2/2]

DescFileIterator ( pkgCache< Str, Itr > &  Owner,
DescFile Trg 
)
inline

Definition at line 514 of file cacheiterators.h.

◆ DescIterator() [1/2]

◆ DescIterator() [2/2]

DescIterator ( pkgCache< Str, Itr > &  Owner,
Description Trg = 0 
)
inline

Definition at line 286 of file cacheiterators.h.

References pkgCache< Str, Itr >::DescP.

◆ DescriptionList()

DescIterator DescriptionList ( ) const
inline

◆ Downloadable()

bool Downloadable ( ) const

◆ end()

bool end ( ) const
inline

Definition at line 65 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

Referenced by pkgCache< Str, Itr >::IsGood().

◆ File() [1/2]

PkgFileIterator File ( ) const
inline

Definition at line 493 of file cacheiterators.h.

References pkgCache< Str, Itr >::PkgFileIterator().

◆ File() [2/2]

PkgFileIterator File ( ) const
inline

Definition at line 511 of file cacheiterators.h.

References pkgCache< Str, Itr >::PkgFileIterator().

◆ FileBegin()

◆ FileEnd()

◆ FileList() [1/2]

VerFileIterator FileList ( ) const
inline

◆ FileList() [2/2]

DescFileIterator FileList ( ) const
inline

◆ FileName() [1/2]

const char* FileName ( ) const
inline

Definition at line 430 of file cacheiterators.h.

◆ FileName() [2/2]

const char* FileName ( ) const
inline

Definition at line 459 of file cacheiterators.h.

◆ FindGrp()

◆ FindPkg() [1/3]

◆ FindPkg() [2/3]

◆ FindPkg() [3/3]

◆ FindPreferredPkg()

PkgIterator FindPreferredPkg ( bool const &  PreferNonVirtual = true) const

find the package with the "best" architecture

The best architecture is either the "native" or the first in the list of Architectures which is not an end-Pointer

Parameters
PreferNonVirtualtries to respond with a non-virtual package and only if this fails returns the best virtual package

◆ Flagged() [1/3]

bool Flagged ( pkgCache< Str, Itr >::Flag::PkgFFlags const  flag) const
inline

Definition at line 468 of file cacheiterators.h.

◆ Flagged() [2/3]

bool Flagged ( pkgCache< Str, Itr >::Flag::ReleaseFileFlags const  flag) const
inline

Definition at line 437 of file cacheiterators.h.

◆ Flagged() [3/3]

bool Flagged ( pkgCache< Str, Itr >::Flag::ReleaseFileFlags const  flag) const
inline

Definition at line 467 of file cacheiterators.h.

References false, and pkgCache< Str, Itr >::ReleaseFile().

◆ GetMap()

MMap& GetMap ( )
inline

Definition at line 238 of file pkgcache.h.

Referenced by pkgCache< Str, Itr >::CacheHash().

◆ GlobOr()

void GlobOr ( DepIterator Start,
DepIterator End 
)

◆ Group()

APT_PURE GrpIterator Group ( ) const
inline

Definition at line 166 of file cacheiterators.h.

References pkgCache< Str, Itr >::GrpIterator().

Referenced by pkgCache< Str, Itr >::Name().

◆ GrpBegin()

pkgCache::GrpIterator GrpBegin ( )
inline

Definition at line 803 of file pkgcache.h.

References pkgCache< Str, Itr >::GrpIterator().

◆ GrpEnd()

pkgCache::GrpIterator GrpEnd ( )
inline

Definition at line 807 of file pkgcache.h.

References pkgCache< Str, Itr >::GrpIterator(), and pkgCache< Str, Itr >::GrpP.

◆ GrpIterator() [1/3]

◆ GrpIterator() [2/3]

GrpIterator ( pkgCache< Str, Itr > &  Owner)
inlineexplicit

◆ GrpIterator() [3/3]

GrpIterator ( pkgCache< Str, Itr > &  Owner,
Group Trg 
)
inline

Definition at line 133 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

◆ Hash()

◆ Head()

Header& Head ( )
inline

Definition at line 261 of file pkgcache.h.

◆ Index()

unsigned long Index ( ) const
inline

Definition at line 82 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

Referenced by pkgCache< Str, Itr >::MapPointer().

◆ IndexType()

const char* IndexType ( ) const
inline

Definition at line 471 of file cacheiterators.h.

◆ IsCritical()

bool IsCritical ( ) const

◆ IsGood()

bool IsGood ( ) const
inline

Definition at line 81 of file cacheiterators.h.

References pkgCache< Str, Itr >::end().

◆ IsIgnorable() [1/2]

bool IsIgnorable ( PkgIterator const &  Pkg) const

◆ IsIgnorable() [2/2]

bool IsIgnorable ( PrvIterator const &  Prv) const

◆ IsImplicit()

bool IsImplicit ( ) const

◆ IsMultiArchImplicit() [1/2]

bool IsMultiArchImplicit ( ) const
inline

◆ IsMultiArchImplicit() [2/2]

bool IsMultiArchImplicit ( ) const
inline

Definition at line 401 of file cacheiterators.h.

References pkgCache< Str, Itr >::Flag::MultiArchImplicit.

◆ IsNegative()

bool IsNegative ( ) const

◆ IsSatisfied() [1/2]

bool IsSatisfied ( PrvIterator const &  Prv) const

◆ IsSatisfied() [2/2]

bool IsSatisfied ( VerIterator const &  Ver) const

◆ Iterator() [1/2]

Iterator ( )
inline

Definition at line 92 of file cacheiterators.h.

◆ Iterator() [2/2]

Iterator ( pkgCache< Str, Itr > &  Owner,
Str *  T = 0 
)
inline

Definition at line 93 of file cacheiterators.h.

◆ Label() [1/2]

const char* Label ( ) const
inline

Definition at line 435 of file cacheiterators.h.

◆ Label() [2/2]

const char* Label ( ) const
inline

Definition at line 465 of file cacheiterators.h.

References pkgCache< Str, Itr >::ReleaseFile().

◆ LanguageCode()

const char* LanguageCode ( ) const
inline

Definition at line 281 of file cacheiterators.h.

◆ MapPointer()

map_pointer<Str> MapPointer ( ) const
inline

Definition at line 83 of file cacheiterators.h.

References pkgCache< Str, Itr >::Index().

◆ md5()

const char* md5 ( ) const
inline

Definition at line 282 of file cacheiterators.h.

◆ MultiArchCache()

bool MultiArchCache ( ) const
inline

Definition at line 271 of file pkgcache.h.

◆ MultiArchType()

const char* MultiArchType ( ) const

◆ Name() [1/3]

const char* Name ( ) const
inline

◆ Name() [2/3]

const char* Name ( ) const
inline

Definition at line 162 of file cacheiterators.h.

References pkgCache< Str, Itr >::Group().

◆ Name() [3/3]

const char* Name ( ) const
inline

Definition at line 392 of file cacheiterators.h.

References pkgCache< Str, Itr >::ParentPkg().

◆ NativeArch()

char const * NativeArch ( )
inline

◆ NewestFile()

VerFileIterator NewestFile ( ) const

◆ NextInSource()

VerIterator NextInSource ( )
inline

Definition at line 198 of file cacheiterators.h.

◆ NextPkg()

PkgIterator NextPkg ( PkgIterator const &  Pkg) const

◆ operator Str *()

operator Str * ( )
inline

◆ operator Str const *()

operator Str const * ( ) const
inline

◆ operator!=()

bool operator!= ( const Itr &  B) const
inline

Definition at line 69 of file cacheiterators.h.

◆ operator*() [1/2]

Str& operator* ( )
inline

Definition at line 76 of file cacheiterators.h.

References pkgCache< Str, Itr >::S.

◆ operator*() [2/2]

Str const& operator* ( ) const
inline

Definition at line 77 of file cacheiterators.h.

References pkgCache< Str, Itr >::S.

◆ operator++() [1/20]

◆ operator++() [2/20]

PkgIterator& operator++ ( )

◆ operator++() [3/20]

VerIterator& operator++ ( )
inline

Definition at line 195 of file cacheiterators.h.

◆ operator++() [4/20]

DescIterator& operator++ ( )
inline

Definition at line 274 of file cacheiterators.h.

◆ operator++() [5/20]

DepIterator& operator++ ( )

◆ operator++() [6/20]

PrvIterator& operator++ ( )
inline

Definition at line 387 of file cacheiterators.h.

◆ operator++() [7/20]

RlsFileIterator& operator++ ( )
inline

Definition at line 426 of file cacheiterators.h.

◆ operator++() [8/20]

PkgFileIterator& operator++ ( )
inline

Definition at line 455 of file cacheiterators.h.

◆ operator++() [9/20]

VerFileIterator& operator++ ( )
inline

Definition at line 489 of file cacheiterators.h.

◆ operator++() [10/20]

DescFileIterator& operator++ ( )
inline

Definition at line 507 of file cacheiterators.h.

◆ operator++() [11/20]

GrpIterator operator++ ( int  )
inline

Definition at line 116 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [12/20]

PkgIterator operator++ ( int  )
inline

Definition at line 157 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [13/20]

VerIterator operator++ ( int  )
inline

Definition at line 196 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [14/20]

DescIterator operator++ ( int  )
inline

Definition at line 275 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [15/20]

DepIterator operator++ ( int  )
inline

Definition at line 304 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [16/20]

PrvIterator operator++ ( int  )
inline

Definition at line 389 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [17/20]

RlsFileIterator operator++ ( int  )
inline

Definition at line 427 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [18/20]

PkgFileIterator operator++ ( int  )
inline

Definition at line 456 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [19/20]

VerFileIterator operator++ ( int  )
inline

Definition at line 490 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator++() [20/20]

DescFileIterator operator++ ( int  )
inline

Definition at line 508 of file cacheiterators.h.

References pkgCache< Str, Itr >::operator++().

Referenced by pkgCache< Str, Itr >::operator++().

◆ operator->() [1/4]

Str* operator-> ( )
inline

Definition at line 72 of file cacheiterators.h.

References pkgCache< Str, Itr >::S.

◆ operator->() [2/4]

◆ operator->() [3/4]

Str const* operator-> ( ) const
inline

Definition at line 73 of file cacheiterators.h.

References pkgCache< Str, Itr >::S.

◆ operator->() [4/4]

◆ operator==()

bool operator== ( const Itr &  B) const
inline

Definition at line 68 of file cacheiterators.h.

◆ Origin() [1/2]

const char* Origin ( ) const
inline

Definition at line 433 of file cacheiterators.h.

◆ Origin() [2/2]

const char* Origin ( ) const
inline

Definition at line 463 of file cacheiterators.h.

References pkgCache< Str, Itr >::ReleaseFile().

◆ OwnerPkg()

PkgIterator OwnerPkg ( ) const
inline

Definition at line 396 of file cacheiterators.h.

References pkgCache< Str, Itr >::PkgIterator().

◆ OwnerPointer() [1/11]

Str* OwnerPointer ( ) const
inlineprivate

Returns the Pointer for this struct in the owner The implementation of this method should be pretty short as it will only return the Pointer into the mmap stored in the owner but the name of this pointer is different for each structure and we want to abstract here at least for the basic methods from the actual structure.

Returns
Pointer to the first structure of this type

Definition at line 57 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

Referenced by pkgCache< Str, Itr >::end(), pkgCache< Str, Itr >::GrpIterator(), pkgCache< Str, Itr >::Index(), pkgCache< Str, Itr >::operator Str *(), pkgCache< Str, Itr >::operator Str const *(), pkgCache< Str, Itr >::OwnerPointer(), pkgCache< Str, Itr >::PkgIterator(), and pkgCache< Str, Itr >::VerIterator().

◆ OwnerPointer() [2/11]

Group* OwnerPointer ( ) const
inline

Definition at line 105 of file cacheiterators.h.

◆ OwnerPointer() [3/11]

Package* OwnerPointer ( ) const
inline

Definition at line 146 of file cacheiterators.h.

◆ OwnerPointer() [4/11]

Version* OwnerPointer ( ) const
inline

Definition at line 190 of file cacheiterators.h.

◆ OwnerPointer() [5/11]

Description* OwnerPointer ( ) const
inline

Definition at line 269 of file cacheiterators.h.

◆ OwnerPointer() [6/11]

Dependency* OwnerPointer ( ) const
inline

Definition at line 298 of file cacheiterators.h.

◆ OwnerPointer() [7/11]

Provides* OwnerPointer ( ) const
inline

Definition at line 382 of file cacheiterators.h.

◆ OwnerPointer() [8/11]

ReleaseFile* OwnerPointer ( ) const
inline

Definition at line 421 of file cacheiterators.h.

◆ OwnerPointer() [9/11]

PackageFile* OwnerPointer ( ) const
inline

Definition at line 450 of file cacheiterators.h.

◆ OwnerPointer() [10/11]

VerFile* OwnerPointer ( ) const
inline

Definition at line 484 of file cacheiterators.h.

◆ OwnerPointer() [11/11]

DescFile* OwnerPointer ( ) const
inline

Definition at line 502 of file cacheiterators.h.

◆ OwnerVer()

VerIterator OwnerVer ( ) const
inline

Definition at line 395 of file cacheiterators.h.

References pkgCache< Str, Itr >::VerIterator().

◆ PackageList()

PkgIterator PackageList ( ) const
inline

◆ ParentPkg() [1/3]

PkgIterator ParentPkg ( ) const
inline

◆ ParentPkg() [2/3]

PkgIterator ParentPkg ( ) const
inline

Definition at line 311 of file cacheiterators.h.

References pkgCache< Str, Itr >::PkgIterator().

◆ ParentPkg() [3/3]

PkgIterator ParentPkg ( ) const
inline

Definition at line 394 of file cacheiterators.h.

References pkgCache< Str, Itr >::PkgIterator().

◆ ParentVer()

VerIterator ParentVer ( ) const
inline

Definition at line 310 of file cacheiterators.h.

References pkgCache< Str, Itr >::VerIterator().

◆ PkgBegin()

pkgCache::PkgIterator PkgBegin ( )
inline

Definition at line 810 of file pkgcache.h.

References pkgCache< Str, Itr >::PkgIterator().

◆ PkgEnd()

pkgCache::PkgIterator PkgEnd ( )
inline

Definition at line 812 of file pkgcache.h.

References pkgCache< Str, Itr >::PkgIterator(), and pkgCache< Str, Itr >::PkgP.

◆ PkgFileIterator() [1/3]

◆ PkgFileIterator() [2/3]

PkgFileIterator ( pkgCache< Str, Itr > &  Owner)
inlineexplicit

Definition at line 477 of file cacheiterators.h.

◆ PkgFileIterator() [3/3]

PkgFileIterator ( pkgCache< Str, Itr > &  Owner,
PackageFile Trg 
)
inline

Definition at line 478 of file cacheiterators.h.

◆ PkgIterator() [1/3]

PkgIterator ( )
inline

Definition at line 184 of file cacheiterators.h.

Referenced by pkgCacheGenerator::AddImplicitDepends(), EDSP::ApplyRequest(), CandidateVersion(), CacheSetHelperAPTGet::canNotFindNewestVer(), CacheSetHelper::canNotFindPkgName(), CacheSetHelperVirtuals::canNotFindPkgName(), CacheSetHelperAPTGet::canNotFindPkgName(), canNotFindPkgName_impl(), CacheFile::CheckDeps(), pkgDPkgPM::CloseLog(), pkgPackageManager::ConfigureAll(), pkgPolicy::CreatePin(), CurrentToCandidateVersion(), DoAutomaticRemove(), DoBuildDep(), DoCacheManipulationFromCommandLine(), DoDSelectUpgrade(), DoInstall(), DoMarkAuto(), DoMinimize(), Dotty(), DoUpdate(), Dump(), DumpAvail(), pkgCache< Str, Itr >::FindPkg(), FindSrc(), VersionContainerInterface::FromDependency(), FullTextSearch(), DebFile::GetInstalledVer(), GetLocalitySortedVersionSet(), SortedPackageUniverse::const_iterator::getType(), GetVersion(), pkgDPkgPM::Go(), pkgArchiveCleaner::Go(), pkgDPkgPM::handleDisappearAction(), InstallPackages(), SortedPackageUniverse::LazyInit(), ListSingleVersion(), main(), pkgProblemResolver::MakeScores(), pkgCacheGenerator::MergeList(), pkgCacheGenerator::MergeListGroup(), pkgCacheGenerator::MergeListVersion(), pkgCacheListParser::NewDepends(), pkgCacheGenerator::NewPackage(), pkgCacheListParser::NewProvides(), pkgCacheListParser::NewProvidesAllArch(), pkgCacheGenerator::NewVersion(), pkgDPkgPM::OpenLog(), CompareProviders::operator()(), TryToInstall::operator()(), TryToRemove::operator()(), operator<<(), pkgCache< Str, Itr >::OwnerPkg(), CacheSetHelper::PackageFromFnmatch(), CacheSetHelper::PackageFromPackageName(), CacheSetHelper::PackageFromPattern(), CacheSetHelper::PackageFromRegEx(), CacheSetHelper::PackageFromTask(), pkgCache< Str, Itr >::ParentPkg(), debListParser::ParseProvides(), pkgAllUpgradeNoNewPackages(), pkgAllUpgradeWithNewPackages(), pkgApplyStatus(), pkgCache< Str, Itr >::PkgBegin(), pkgDistUpgrade(), pkgCache< Str, Itr >::PkgEnd(), pkgFixBroken(), pkgMinimizeUpgrade(), Policy(), pkgDPkgPM::ProcessDpkgStatusLine(), EDSP::ReadResponse(), EIPP::ReadResponse(), pkgDepCache::readStateFile(), pkgCacheGenerator::ReMap(), pkgProblemResolver::ResolveByKeepInternal(), pkgProblemResolver::ResolveInternal(), StateChanges::Save(), Search(), pkgDepCache::SetCandidateRelease(), pkgDepCache::SetCandidateVersion(), pkgDepCache::SetReInstall(), ShowAuto(), ShowBrokenPackage(), ShowDel(), ShowDepends(), ShowDowngraded(), ShowEssential(), ShowHold(), ShowKept(), ShowNew(), ShowPackage(), ShowSelection(), ShowUpgraded(), CacheSetHelperAPTGet::showVirtualPackageErrors(), Stats(), pkgCache< Str, Itr >::TargetPkg(), CacheSetHelperAPTGet::tryVirtualPackage(), UnMet(), pkgAcqChangelog::URI(), pkgDPkgPM::WriteApportReport(), EIPP::WriteRequest(), EDSP::WriteRequest(), EIPP::WriteScenario(), EDSP::WriteScenario(), WriteSolution(), pkgDepCache::writeStateFile(), and XVcg().

◆ PkgIterator() [2/3]

PkgIterator ( pkgCache< Str, Itr > &  Owner)
inlineexplicit

◆ PkgIterator() [3/3]

PkgIterator ( pkgCache< Str, Itr > &  Owner,
Package Trg 
)
inline

Definition at line 180 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

◆ Priority()

const char * Priority ( unsigned char  Priority)
static

Definition at line 353 of file pkgcache.cc.

References APT_ARRAY_SIZE.

◆ PriorityType()

const char* PriorityType ( ) const
inline

Definition at line 238 of file cacheiterators.h.

◆ ProvidesList() [1/2]

PrvIterator ProvidesList ( ) const
inline

◆ ProvidesList() [2/2]

PrvIterator ProvidesList ( ) const
inline

◆ ProvideVersion()

const char* ProvideVersion ( ) const
inline

Definition at line 393 of file cacheiterators.h.

◆ PrvIterator() [1/3]

◆ PrvIterator() [2/3]

PrvIterator ( pkgCache< Str, Itr > &  Owner,
Provides Trg,
Package  
)
inline

Definition at line 411 of file cacheiterators.h.

References pkgCache< Str, Itr >::ProvideP.

◆ PrvIterator() [3/3]

PrvIterator ( pkgCache< Str, Itr > &  Owner,
Provides Trg,
Version  
)
inline

Definition at line 406 of file cacheiterators.h.

References pkgCache< Str, Itr >::ProvideP.

◆ Purge()

bool Purge ( ) const
inline

◆ ReleaseFile()

◆ RelStr() [1/3]

std::string RelStr ( )

◆ RelStr() [2/3]

std::string RelStr ( )

◆ RelStr() [3/3]

std::string RelStr ( ) const

◆ ReMap() [1/3]

◆ ReMap() [2/3]

void ReMap ( void const *const  oldMap,
void *const  newMap 
)
inline

◆ ReMap() [3/3]

void ReMap ( void const *const  oldMap,
void *const  newMap 
)
inline

Definition at line 353 of file cacheiterators.h.

◆ RevDependsList()

DepIterator RevDependsList ( ) const
inline

◆ Reverse()

bool Reverse ( ) const
inline

Definition at line 312 of file cacheiterators.h.

References pkgCache< Str, Itr >::DepRev.

◆ RlsFileBegin()

◆ RlsFileEnd()

pkgCache::RlsFileIterator RlsFileEnd ( )
inline

◆ RlsFileIterator() [1/3]

◆ RlsFileIterator() [2/3]

RlsFileIterator ( pkgCache< Str, Itr > &  Owner)
inlineexplicit

Definition at line 443 of file cacheiterators.h.

◆ RlsFileIterator() [3/3]

RlsFileIterator ( pkgCache< Str, Itr > &  Owner,
ReleaseFile Trg 
)
inline

Definition at line 444 of file cacheiterators.h.

◆ Section()

const char* Section ( ) const
inline

Definition at line 217 of file cacheiterators.h.

◆ sHash()

◆ SimilarVer()

bool SimilarVer ( const VerIterator B) const
inline

compares two version and returns if they are similar

This method should be used to identify if two pseudo versions are referring to the same "real" version

Definition at line 211 of file cacheiterators.h.

References pkgCache< Str, Itr >::VerStr().

◆ Site() [1/2]

const char* Site ( ) const
inline

Definition at line 436 of file cacheiterators.h.

◆ Site() [2/2]

const char* Site ( ) const
inline

Definition at line 466 of file cacheiterators.h.

References pkgCache< Str, Itr >::ReleaseFile().

◆ SmartTargetPkg() [1/2]

PkgIterator SmartTargetPkg ( ) const
inline

◆ SmartTargetPkg() [2/2]

bool SmartTargetPkg ( PkgIterator Result) const

◆ SourcePkgName()

const char* SourcePkgName ( ) const
inline

source package name this version comes from Always contains the name, even if it is the same as the binary name

Definition at line 220 of file cacheiterators.h.

◆ SourceVerStr()

const char* SourceVerStr ( ) const
inline

source version this version comes from Always contains the version string, even if it is the same as the binary version

Definition at line 223 of file cacheiterators.h.

◆ State()

OkState State ( ) const

Referenced by pkgOrderList::Flag().

◆ Sync()

bool Sync ( )
inline

Definition at line 237 of file pkgcache.h.

References MMap::Sync().

◆ TargetPkg()

PkgIterator TargetPkg ( ) const
inline

◆ TargetVer()

const char* TargetVer ( ) const
inline

Definition at line 307 of file cacheiterators.h.

References pkgCache< Str, Itr >::DependencyData::Version.

◆ TranslatedDescription()

DescIterator TranslatedDescription ( ) const

◆ TranslatedDescriptionForLanguage()

DescIterator TranslatedDescriptionForLanguage ( APT::StringView  lang) const

◆ VerFileIterator() [1/2]

◆ VerFileIterator() [2/2]

VerFileIterator ( pkgCache< Str, Itr > &  Owner,
VerFile Trg 
)
inline

Definition at line 496 of file cacheiterators.h.

◆ VerIterator() [1/2]

VerIterator ( )
inline

Definition at line 263 of file cacheiterators.h.

Referenced by CacheSetHelper::canNotFindCandidateVer(), CacheSetHelperAPTGet::canNotFindCandidateVer(), CacheSetHelper::canNotFindInstalledVer(), CacheSetHelper::canNotFindNewestVer(), CacheSetHelperAPTGet::canNotFindNewestVer(), CacheSetHelper::canNotGetCandInstVer(), CacheSetHelper::canNotGetInstCandVer(), CacheSetHelper::canNotGetVersion(), PrioComp::compare(), pkgPolicy::CreatePin(), DoInstall(), DoList(), DoMinimize(), DoSelection(), Dotty(), Dump(), DumpAvail(), DumpPackage(), pkgVersionMatch::Find(), FindNowVersion(), FindSrc(), VersionContainerInterface::FromDependency(), VersionContainerInterface::FromPackage(), VersionContainerInterface::FromString(), getAllPossibleSolutions(), GetArchitecture(), pkgPolicy::GetCandidateVer(), VersionContainerInterface::getCandidateVer(), GetCandidateVersion(), DebFile::GetInstalledVer(), GetInstalledVersion(), GetLongDescription(), GetShortDescription(), pkgDPkgPM::Go(), pkgArchiveCleaner::Go(), pkgDPkgPM::handleDisappearAction(), ListAllVersions(), Madison(), pkgProblemResolver::MakeScores(), pkgDepCache::MarkPackage(), pkgCacheGenerator::MergeListPackage(), pkgCacheGenerator::MergeListVersion(), pkgCacheGenerator::NewPackage(), debListParser::NewVersion(), pkgCacheGenerator::NewVersion(), PkgIsExtraInstalled::operator()(), pkgCache< Str, Itr >::OwnerVer(), CacheSetHelper::PackageFromTask(), pkgCache< Str, Itr >::ParentVer(), Policy(), TryToInstall::propergateReleaseCandiateSwitching(), EDSP::ReadResponse(), EIPP::ReadResponse(), pkgCacheGenerator::ReMap(), pkgProblemResolver::ResolveByKeepInternal(), pkgProblemResolver::ResolveInternal(), StateChanges::Save(), Search(), pkgDPkgPM::SendPkgsInfo(), pkgDepCache::SetCandidateRelease(), ShowBrokenPackage(), ShowDepends(), Stats(), CacheSetHelperAPTGet::tryVirtualPackage(), UnMet(), pkgDPkgPM::WriteApportReport(), EDSP::WriteLimitedScenario(), EIPP::WriteScenario(), EDSP::WriteScenario(), and XVcg().

◆ VerIterator() [2/2]

VerIterator ( pkgCache< Str, Itr > &  Owner,
Version Trg = 0 
)
inline

Definition at line 259 of file cacheiterators.h.

References pkgCache< Str, Itr >::OwnerPointer().

◆ Version() [1/2]

const char* Version ( ) const
inline

Definition at line 432 of file cacheiterators.h.

◆ Version() [2/2]

const char* Version ( ) const
inline

Definition at line 462 of file cacheiterators.h.

References pkgCache< Str, Itr >::ReleaseFile().

◆ VersionList()

VerIterator VersionList ( ) const
inline

◆ VersionsInSource()

VerIterator VersionsInSource ( ) const
inline

◆ VerStr()

const char* VerStr ( ) const
inline

Definition at line 216 of file cacheiterators.h.

Referenced by pkgCache< Str, Itr >::SimilarVer().

◆ ViewString()

Friends And Related Function Documentation

◆ DepIterator

APT_DEPRECATED_MSG ("Use APT::PrettyDep instead") friend std DepIterator ( pkgCache< Str, Itr > &  Owner,
Dependency Trg,
Version = 0 
)
friend

Definition at line 364 of file cacheiterators.h.

◆ FullName

APT_DEPRECATED_MSG ("Use APT::PrettyPkg instead") friend std std::string FullName ( bool const &  Pretty = false) const
friend

Member Data Documentation

◆ CacheFile

std::string CacheFile
protected

Definition at line 214 of file pkgcache.h.

◆ d

void* const d
private

Definition at line 286 of file pkgcache.h.

◆ DepDataP

DependencyData* DepDataP

Definition at line 232 of file pkgcache.h.

Referenced by pkgCacheGenerator::NewDepends(), and pkgCache< Str, Itr >::ReMap().

◆ DepP

◆ DescFileP

DescFile* DescFileP

Definition at line 225 of file pkgcache.h.

Referenced by pkgCacheGenerator::NewFileDesc(), and pkgCache< Str, Itr >::ReMap().

◆ DescP

◆ GrpP

◆ HashIndex

long HashIndex
private

Definition at line 102 of file cacheiterators.h.

◆ HeaderP

◆ Map

MMap& Map
protected

Definition at line 215 of file pkgcache.h.

Referenced by pkgCache< Str, Itr >::CacheHash(), and pkgCache< Str, Itr >::ReMap().

◆ MultiArchEnabled

bool MultiArchEnabled
private

Definition at line 287 of file pkgcache.h.

Referenced by pkgCache< Str, Itr >::pkgCache().

◆ Owner

pkgCache* Owner
protected

Definition at line 61 of file cacheiterators.h.

Referenced by pkgCache< Str, Itr >::Cache().

◆ PkgFileP

◆ PkgP

◆ ProvideP

◆ reserved

void* reserved[12]

Definition at line 234 of file pkgcache.h.

◆ RlsFileP

◆ S

◆ S2

DependencyData* S2
private

Definition at line 295 of file cacheiterators.h.

◆ StrP

◆  [1/2]

Type { ... } enum

◆  [2/2]

Type { ... } enum

◆ VerFileP

VerFile* VerFileP

Definition at line 224 of file pkgcache.h.

Referenced by pkgCacheGenerator::NewFileVer(), and pkgCache< Str, Itr >::ReMap().

◆ VerP

◆ VS


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