apt  0.9.7.7
Public Member Functions | Protected Member Functions | List of all members
pkgCache::VerIterator Class Reference
Inheritance diagram for pkgCache::VerIterator:
pkgCache::Iterator< Version, VerIterator > iterator

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
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
std::string RelStr () const
bool Automatic () const
VerFileIterator NewestFile () const
 VerIterator (pkgCache &Owner, Version *Trg=0)
- Public Member Functions inherited from pkgCache::Iterator< Version, VerIterator >
bool end () const
bool operator== (const VerIterator &B) const
bool operator!= (const VerIterator &B) const
Versionoperator-> ()
Versionconst * operator-> () const
 operator Version * ()
 operator Versionconst * () const
Versionoperator* ()
Versionconst & operator* () const
pkgCacheCache () const
void operator= (const VerIterator &B)
bool IsGood () const
unsigned long Index () const
void ReMap (void const *const oldMap, void const *const newMap)
 Iterator (pkgCache &Owner, Version *T=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.

Additional Inherited Members

- Protected Attributes inherited from pkgCache::Iterator< Version, VerIterator >
VersionS
pkgCacheOwner

Member Function Documentation

Version* OwnerPointer ( ) const
inlineprotectedvirtual

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: