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

information for a single version of a package More...

#include <pkgcache.h>

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

Public Types

enum  VerMultiArch {
  No = 0 , All = (1<<0) , Foreign = (1<<1) , Same = (1<<2) ,
  Allowed = (1<<3) , AllForeign = All | Foreign , AllAllowed = All | Allowed
}
 Multi-Arch capabilities of a package version. More...
 

Public Attributes

map_stringitem_t VerStr
 complete version string More...
 
map_stringitem_t Section
 section this version is filled in More...
 
map_stringitem_t SourcePkgName
 source package name this version comes from Always contains the name, even if it is the same as the binary name More...
 
map_stringitem_t SourceVerStr
 source version this version comes from Always contains the version string, even if it is the same as the binary version More...
 
map_number_t MultiArch
 stores the MultiArch capabilities of this version More...
 
map_pointer< VerFileFileList
 references all the PackageFile's that this version came from More...
 
map_pointer< VersionNextVer
 next (lower or equal) version in the linked list More...
 
map_pointer< DescriptionDescriptionList
 next description in the linked list More...
 
map_pointer< DependencyDependsList
 base of the dependency list More...
 
map_pointer< PackageParentPkg
 links to the owning package More...
 
map_pointer< ProvidesProvidesList
 list of pkgCache::Provides More...
 
map_filesize_t Size
 archive size for this version More...
 
map_filesize_t InstalledSize
 uncompressed size for this version More...
 
uint32_t Hash
 characteristic value representing this version More...
 
map_id_t ID
 unique sequel ID More...
 
map_number_t Priority
 parsed priority value More...
 
map_pointer< VersionNextInSource
 next version in the source package (might be different binary) More...
 
map_pointer< Extra > d
 Private pointer. More...
 

Detailed Description

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

information for a single version of a package

The version list is always sorted from highest version to lowest version by the generator. Equal version numbers are either merged or handled as separate versions based on the Hash value.

Definition at line 624 of file pkgcache.h.

Member Enumeration Documentation

◆ VerMultiArch

Multi-Arch capabilities of a package version.

Enumerator
No 

is the default and doesn't trigger special behaviour

All 

will cause that Ver.Arch() will report "all"

Foreign 

can satisfy dependencies in another architecture

Same 

can be co-installed with itself from other architectures

Allowed 

other packages are allowed to depend on thispkg:any

AllForeign 
AllAllowed 

Definition at line 640 of file pkgcache.h.

Member Data Documentation

◆ d

map_pointer<Extra> d

Private pointer.

Definition at line 693 of file pkgcache.h.

◆ DependsList

map_pointer<Dependency> DependsList

base of the dependency list

Definition at line 666 of file pkgcache.h.

◆ DescriptionList

map_pointer<Description> DescriptionList

next description in the linked list

Definition at line 664 of file pkgcache.h.

◆ FileList

map_pointer<VerFile> FileList

references all the PackageFile's that this version came from

FileList can be used to determine what distribution(s) the Version applies to. If FileList is 0 then this is a blank version. The structure should also have a 0 in all other fields excluding pkgCache::Version::VerStr and Possibly pkgCache::Version::NextVer.

Definition at line 660 of file pkgcache.h.

◆ Hash

uint32_t Hash

characteristic value representing this version

No two packages in existence should have the same VerStr and Hash with different contents.

Definition at line 684 of file pkgcache.h.

◆ ID

unique sequel ID

Definition at line 686 of file pkgcache.h.

◆ InstalledSize

map_filesize_t InstalledSize

uncompressed size for this version

Definition at line 679 of file pkgcache.h.

◆ MultiArch

map_number_t MultiArch

stores the MultiArch capabilities of this version

Flags used are defined in pkgCache::Version::VerMultiArch

Definition at line 652 of file pkgcache.h.

◆ NextInSource

map_pointer<Version> NextInSource

next version in the source package (might be different binary)

Definition at line 690 of file pkgcache.h.

◆ NextVer

map_pointer<Version> NextVer

next (lower or equal) version in the linked list

Definition at line 662 of file pkgcache.h.

◆ ParentPkg

map_pointer<Package> ParentPkg

links to the owning package

This allows reverse dependencies to determine the package

Definition at line 670 of file pkgcache.h.

◆ Priority

map_number_t Priority

parsed priority value

Definition at line 688 of file pkgcache.h.

◆ ProvidesList

map_pointer<Provides> ProvidesList

list of pkgCache::Provides

Definition at line 672 of file pkgcache.h.

◆ Section

section this version is filled in

Definition at line 631 of file pkgcache.h.

◆ Size

archive size for this version

For Debian this is the size of the .deb file.

Definition at line 677 of file pkgcache.h.

◆ SourcePkgName

map_stringitem_t SourcePkgName

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

Definition at line 634 of file pkgcache.h.

◆ SourceVerStr

map_stringitem_t SourceVerStr

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

Definition at line 637 of file pkgcache.h.

◆ VerStr

complete version string

Definition at line 629 of file pkgcache.h.


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