apt @VERSION@
|
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 | |
Group * | OwnerPointer () 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. |
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
PreferNonVirtual | tries 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.
Implements pkgCache::Iterator< Group, GrpIterator >.