apt @VERSION@
Public Member Functions | Protected Member Functions

pkgCache::VerIterator Class Reference

Inheritance diagram for pkgCache::VerIterator:
pkgCache::Iterator< Version, VerIterator > iterator

List of all members.

Public Member Functions

void operator++ (int)
void operator++ ()
int CompareVer (const VerIterator &B) const
bool SimilarVer (const VerIterator &B) const
 compares two version and returns if they are similar
const char * VerStr () const
const char * Section () const
const char * Arch () const
__deprecated const char * Arch (bool const pseudo) const
PkgIterator ParentPkg () const
DescIterator DescriptionList () const
DescIterator TranslatedDescription () const
DepIterator DependsList () const
PrvIterator ProvidesList () const
VerFileIterator FileList () const
bool Downloadable () const
const char * PriorityType () const
string RelStr () const
bool Automatic () const
__deprecated bool Pseudo () const
VerFileIterator NewestFile () const
 VerIterator (pkgCache &Owner, Version *Trg=0)

Protected Member Functions

VersionOwnerPointer () 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 stucture and we want to abstract here at least for the basic methods from the actual structure.

Member Function Documentation

Version* OwnerPointer ( ) const [inline, protected, virtual]

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 stucture 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

Implements pkgCache::Iterator< Version, VerIterator >.

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 refering to the same "real" version

References pkgCache::Version::Hash.


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