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 >::Package Struct Reference

contains information for a single unique package More...

#include <pkgcache.h>

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

Public Attributes

map_stringitem_t Arch
 Architecture of the package. More...
 
map_pointer< VersionVersionList
 Base of a singly linked list of versions. More...
 
map_pointer< VersionCurrentVer
 index to the installed version More...
 
map_pointer< pkgCache::GroupGroup
 index of the group this package belongs to More...
 
map_pointer< PackageNextPackage
 Link to the next package in the same bucket. More...
 
map_pointer< DependencyRevDepends
 List of all dependencies on this package. More...
 
map_pointer< ProvidesProvidesList
 List of all "packages" this package provide. More...
 
map_number_t SelectedState
 state that the user wishes the package to be in More...
 
map_number_t InstState
 installation state of the package More...
 
map_number_t CurrentState
 indicates if the package is installed More...
 
map_id_t ID
 unique sequel ID More...
 
map_flags_t Flags
 some useful indicators of the package's state More...
 
map_pointer< void > d
 Private pointer. More...
 

Detailed Description

template<typename Str, typename Itr>
struct pkgCache< Str, Itr >::Package

contains information for a single unique package

There can be any number of versions of a given package. Package exists in a singly linked list of package records starting at the hash index of the name in the pkgCache::Header::PkgHashTable

A package can be created for every architecture so package names are not unique, but it is guaranteed that packages with the same name are sequencel ordered in the list. Packages with the same name can be accessed with the Group.

Definition at line 449 of file pkgcache.h.

Member Data Documentation

◆ Arch

Architecture of the package.

Definition at line 452 of file pkgcache.h.

◆ CurrentState

map_number_t CurrentState

indicates if the package is installed

Definition at line 486 of file pkgcache.h.

◆ CurrentVer

map_pointer<Version> CurrentVer

index to the installed version

Definition at line 464 of file pkgcache.h.

◆ d

map_pointer<void> d

Private pointer.

Definition at line 499 of file pkgcache.h.

◆ Flags

map_flags_t Flags

some useful indicators of the package's state

Definition at line 496 of file pkgcache.h.

◆ Group

index of the group this package belongs to

Definition at line 466 of file pkgcache.h.

◆ ID

unique sequel ID

ID is a unique value from 0 to Header->PackageCount assigned by the generator. This allows clients to create an array of size PackageCount and use it to store state information for the package map. For instance the status file emitter uses this to track which packages have been emitted already.

Definition at line 494 of file pkgcache.h.

Referenced by pkgDPkgPM::ExpandPendingCalls(), pkgOrderList::Flag(), pkgDPkgPM::Go(), pkgOrderList::IsFlag(), pkgOrderList::RmFlag(), and pkgProblemResolver::ScoreSort().

◆ InstState

map_number_t InstState

installation state of the package

This should be "ok" but in case the installation failed it will be different.

Definition at line 484 of file pkgcache.h.

◆ NextPackage

map_pointer<Package> NextPackage

Link to the next package in the same bucket.

Definition at line 470 of file pkgcache.h.

Referenced by PackageNext().

◆ ProvidesList

map_pointer<Provides> ProvidesList

List of all "packages" this package provide.

Definition at line 474 of file pkgcache.h.

◆ RevDepends

map_pointer<Dependency> RevDepends

List of all dependencies on this package.

Definition at line 472 of file pkgcache.h.

◆ SelectedState

map_number_t SelectedState

state that the user wishes the package to be in

Definition at line 478 of file pkgcache.h.

◆ VersionList

map_pointer<Version> VersionList

Base of a singly linked list of versions.

Each structure represents a unique version of the package. The version structures contain links into PackageFile and the original text file as well as detailed information about the size and dependencies of the specific package. In this way multiple versions of a package can be cleanly handled by the system. Furthermore, this linked list is guaranteed to be sorted from Highest version to lowest version with no duplicate entries.

Definition at line 462 of file pkgcache.h.


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