apt  0.9.11.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pkgCache::Iterator< Str, Itr > Class Template Referenceabstract
Inheritance diagram for pkgCache::Iterator< Str, Itr >:

Public Member Functions

virtual void operator++ (int)=0
 
virtual void operator++ ()=0
 
bool end () const
 
bool operator== (const Itr &B) const
 
bool operator!= (const Itr &B) const
 
Str * operator-> ()
 
Str const * operator-> () const
 
 operator Str * ()
 
 operator Str const * () const
 
Str & operator* ()
 
Str const & operator* () const
 
pkgCacheCache () const
 
void operator= (const Itr &B)
 
bool IsGood () const
 
unsigned long Index () const
 
void ReMap (void const *const oldMap, void const *const newMap)
 
 Iterator (pkgCache &Owner, Str *T=0)
 

Protected Member Functions

virtual Str * OwnerPointer () const =0
 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

Str * S
 
pkgCacheOwner
 

Member Function Documentation

virtual Str* OwnerPointer ( ) const
protectedpure 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

Implemented in pkgCache::DescFileIterator, pkgCache::VerFileIterator, pkgCache::PkgFileIterator, pkgCache::PrvIterator, pkgCache::DepIterator, pkgCache::DescIterator, pkgCache::VerIterator, pkgCache::PkgIterator, and pkgCache::GrpIterator.


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