apt @VERSION@
Public Member Functions | Protected Member Functions | Protected Attributes

pkgCache::Iterator< Str, Itr > Class Template Reference

Inheritance diagram for pkgCache::Iterator< Str, Itr >:
iterator

List of all members.

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.

Protected Attributes

Str * S
pkgCacheOwner

template<typename Str, typename Itr>
class pkgCache::Iterator< Str, Itr >


Member Function Documentation

virtual Str* OwnerPointer ( ) const [protected, pure 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::GrpIterator, pkgCache::PkgIterator, pkgCache::VerIterator, pkgCache::DescIterator, pkgCache::DepIterator, pkgCache::PrvIterator, pkgCache::PkgFileIterator, pkgCache::VerFileIterator, and pkgCache::DescFileIterator.


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