apt  0.9.7.3
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
pkgCache::PkgIterator Class Reference
Inheritance diagram for pkgCache::PkgIterator:
pkgCache::Iterator< Package, PkgIterator > iterator

Public Types

enum  OkState { NeedsNothing, NeedsUnpack, NeedsConfigure }

Public Member Functions

 PkgIterator (pkgCache &Owner)
virtual void operator++ (int)
virtual void operator++ ()
const char * Name () const
const char * Section () const
bool Purge () const
const char * Arch () const
GrpIterator Group () const
VerIterator VersionList () const
VerIterator CurrentVer () const
DepIterator RevDependsList () const
PrvIterator ProvidesList () const
OkState State () const
const char * CandVersion () const
const char * CurVersion () const
std::string FullName (bool const &Pretty=false) const
 PkgIterator (pkgCache &Owner, Package *Trg)
- Public Member Functions inherited from pkgCache::Iterator< Package, PkgIterator >
bool end () const
bool operator== (const PkgIterator &B) const
bool operator!= (const PkgIterator &B) const
Packageoperator-> ()
Packageconst * operator-> () const
 operator Package * ()
 operator Packageconst * () const
Packageoperator* ()
Packageconst & operator* () const
pkgCacheCache () const
void operator= (const PkgIterator &B)
bool IsGood () const
unsigned long Index () const
void ReMap (void const *const oldMap, void const *const newMap)
 Iterator (pkgCache &Owner, Package *T=0)

Protected Member Functions

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

Friends

std::ostream & operator<< (std::ostream &out, PkgIterator i)

Additional Inherited Members

- Protected Attributes inherited from pkgCache::Iterator< Package, PkgIterator >
PackageS
pkgCacheOwner

Member Function Documentation

Package* 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< Package, PkgIterator >.


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