libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pkgCache::GrpIterator Class Reference

#include <cacheiterators.h>

Inheritance diagram for pkgCache::GrpIterator:
Collaboration diagram for pkgCache::GrpIterator:

Public Member Functions

 GrpIterator (pkgCache &Owner)
 
 GrpIterator (pkgCache &Owner, Group *Trg)
 
 GrpIterator ()
 
pkgCacheCache () 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
 
Groupoperator* ()
 
Groupconst & operator* () const
 
virtual void operator++ (int)
 
virtual void operator++ ()
 
Groupoperator-> ()
 
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

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

Protected Attributes

pkgCacheOwner
 
GroupS
 

Private Attributes

long HashIndex
 

Constructor & Destructor Documentation

pkgCache::GrpIterator::GrpIterator ( pkgCache Owner)
inline

References operator++(), OwnerPointer(), and pkgCache::Iterator< Group, GrpIterator >::S.

Here is the call graph for this function:

pkgCache::GrpIterator::GrpIterator ( pkgCache Owner,
Group Trg 
)
inline

References OwnerPointer(), and pkgCache::Iterator< Group, GrpIterator >::S.

Here is the call graph for this function:

pkgCache::GrpIterator::GrpIterator ( )
inline

Member Function Documentation

pkgCache* pkgCache::Iterator< Group , GrpIterator >::Cache ( ) const
inlineinherited
bool pkgCache::Iterator< Group , GrpIterator >::end ( ) const
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

Parameters
PreferNonVirtualtries to respond with a non-virtual package and only if this fails returns the best virtual package
unsigned long pkgCache::Iterator< Group , GrpIterator >::Index ( ) const
inlineinherited
bool pkgCache::Iterator< Group , GrpIterator >::IsGood ( ) const
inlineinherited
PkgIterator pkgCache::GrpIterator::NextPkg ( PkgIterator const &  Pkg) const
pkgCache::Iterator< Group , GrpIterator >::operator Group * ( )
inlineinherited
pkgCache::Iterator< Group , GrpIterator >::operator Group const * ( ) const
inlineinherited
bool pkgCache::Iterator< Group , GrpIterator >::operator!= ( const GrpIterator< Group, GrpIterator > &  B) const
inlineinherited
Group & pkgCache::Iterator< Group , GrpIterator >::operator* ( void  )
inlineinherited
Group const& pkgCache::Iterator< Group , GrpIterator >::operator* ( void  ) const
inlineinherited
virtual void pkgCache::GrpIterator::operator++ ( int  )
virtual
virtual void pkgCache::GrpIterator::operator++ ( )
inlinevirtual

Implements pkgCache::Iterator< Group, GrpIterator >.

Referenced by GrpIterator().

Here is the caller graph for this function:

Group * pkgCache::Iterator< Group , GrpIterator >::operator-> ( )
inlineinherited
Group const* pkgCache::Iterator< Group , GrpIterator >::operator-> ( ) const
inlineinherited
bool pkgCache::Iterator< Group , GrpIterator >::operator== ( const GrpIterator< Group, GrpIterator > &  B) const
inlineinherited
Group* pkgCache::GrpIterator::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 >.

References pkgCache::GrpP, and pkgCache::Iterator< Group, GrpIterator >::Owner.

Referenced by GrpIterator().

Here is the caller graph for this function:

void pkgCache::Iterator< Group , GrpIterator >::ReMap ( void const *const  oldMap,
void const *const  newMap 
)
inlineinherited

Member Data Documentation

long pkgCache::GrpIterator::HashIndex
private
pkgCache* pkgCache::Iterator< Group , GrpIterator >::Owner
protectedinherited

Referenced by Name(), OwnerPointer(), and PackageList().

Group * pkgCache::Iterator< Group , GrpIterator >::S
protectedinherited

Referenced by GrpIterator(), Name(), and PackageList().


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