apt @VERSION@
Public Member Functions | Protected Member Functions

pkgCache::GrpIterator Class Reference

Inheritance diagram for pkgCache::GrpIterator:
pkgCache::Iterator< Group, GrpIterator > iterator

List of all members.

Public Member Functions

 GrpIterator (pkgCache &Owner)
virtual void operator++ (int)
virtual void operator++ ()
const char * Name () const
PkgIterator PackageList () const
PkgIterator FindPkg (string Arch="any") const
PkgIterator FindPreferredPkg (bool const &PreferNonVirtual=true) const
 find the package with the "best" architecture
PkgIterator NextPkg (PkgIterator const &Pkg) const
 GrpIterator (pkgCache &Owner, Group *Trg)

Protected Member Functions

GroupOwnerPointer () 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

pkgCache::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

References Configuration::getArchitectures().

Referenced by PackageSet::FromName().

Group* 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< Group, GrpIterator >.


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