#include <cacheiterators.h>
Public Member Functions | |
GrpIterator (pkgCache &Owner) | |
GrpIterator (pkgCache &Owner, Group *Trg) | |
GrpIterator () | |
pkgCache * | Cache () const |
bool | end () const |
PkgIterator | FindPkg (std::string Arch="any") const |
PkgIterator | FindPreferredPkg (bool const &PreferNonVirtual=true) const |
find the package with the "best" architecture More... | |
unsigned long | Index () const |
bool | IsGood () const |
const char * | Name () const |
PkgIterator | NextPkg (PkgIterator const &Pkg) const |
operator Group * () | |
operator Groupconst * () const | |
bool | operator!= (const GrpIterator &B) const |
Group & | operator* () |
Groupconst & | operator* () const |
virtual void | operator++ (int) |
virtual void | operator++ () |
Group * | operator-> () |
Groupconst * | operator-> () const |
bool | operator== (const GrpIterator &B) const |
PkgIterator | PackageList () const |
void | ReMap (void const *const oldMap, void const *const newMap) |
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. More... | |
Protected Attributes | |
pkgCache * | Owner |
Group * | S |
Private Attributes | |
long | HashIndex |
|
inline |
References operator++(), OwnerPointer(), and pkgCache::Iterator< Group, GrpIterator >::S.
References OwnerPointer(), and pkgCache::Iterator< Group, GrpIterator >::S.
|
inline |
|
inlineinherited |
|
inlineinherited |
PkgIterator pkgCache::GrpIterator::FindPkg | ( | std::string | Arch = "any" | ) | const |
PkgIterator pkgCache::GrpIterator::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 |
|
inlineinherited |
|
inlineinherited |
|
inline |
PkgIterator pkgCache::GrpIterator::NextPkg | ( | PkgIterator const & | Pkg | ) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
virtual |
Implements pkgCache::Iterator< Group, GrpIterator >.
|
inlinevirtual |
Implements pkgCache::Iterator< Group, GrpIterator >.
Referenced by GrpIterator().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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.
Implements pkgCache::Iterator< Group, GrpIterator >.
References pkgCache::GrpP, and pkgCache::Iterator< Group, GrpIterator >::Owner.
Referenced by GrpIterator().
|
inline |
|
inlineinherited |
|
private |
|
protectedinherited |
Referenced by Name(), OwnerPointer(), and PackageList().
|
protectedinherited |
Referenced by GrpIterator(), Name(), and PackageList().