apt  0.9.12.1
Public Member Functions | Protected Member Functions | List of all members
pkgCache::GrpIterator Class Reference
Inheritance diagram for pkgCache::GrpIterator:
pkgCache::Iterator< Group, GrpIterator >

Public Member Functions

 GrpIterator (pkgCache &Owner)
 
virtual void operator++ (int)
 
virtual void operator++ ()
 
const char * Name () const
 
PkgIterator PackageList () const
 
PkgIterator FindPkg (std::string Arch="any") const
 
PkgIterator FindPreferredPkg (bool const &PreferNonVirtual=true) const
 find the package with the "best" architecture More...
 
PkgIterator NextPkg (PkgIterator const &Pkg) const
 
 GrpIterator (pkgCache &Owner, Group *Trg)
 
- Public Member Functions inherited from pkgCache::Iterator< Group, GrpIterator >
bool end () const
 
bool operator== (const GrpIterator &B) const
 
bool operator!= (const GrpIterator &B) const
 
Groupoperator-> ()
 
Groupconst * operator-> () const
 
 operator Group * ()
 
 operator Groupconst * () const
 
Groupoperator* ()
 
Groupconst & operator* () const
 
pkgCacheCache () const
 
void operator= (const GrpIterator &B)
 
bool IsGood () const
 
unsigned long Index () const
 
void ReMap (void const *const oldMap, void const *const newMap)
 
 Iterator (pkgCache &Owner, Group *T=0)
 

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. More...
 

Additional Inherited Members

- Protected Attributes inherited from pkgCache::Iterator< Group, GrpIterator >
GroupS
 
pkgCacheOwner
 

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

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


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