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::PkgIterator Class Reference

#include <cacheiterators.h>

Inheritance diagram for pkgCache::PkgIterator:
Collaboration diagram for pkgCache::PkgIterator:

Public Types

enum  OkState {
  NeedsNothing,
  NeedsUnpack,
  NeedsConfigure
}
 

Public Member Functions

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

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

Protected Attributes

pkgCacheOwner
 
PackageS
 

Private Attributes

long HashIndex
 

Friends

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

Member Enumeration Documentation

Enumerator
NeedsNothing 
NeedsUnpack 
NeedsConfigure 

Constructor & Destructor Documentation

pkgCache::PkgIterator::PkgIterator ( pkgCache Owner)
inline

References operator++(), OwnerPointer(), and pkgCache::Iterator< Package, PkgIterator >::S.

Here is the call graph for this function:

pkgCache::PkgIterator::PkgIterator ( pkgCache Owner,
Package Trg 
)
inline

References OwnerPointer(), and pkgCache::Iterator< Package, PkgIterator >::S.

Here is the call graph for this function:

pkgCache::PkgIterator::PkgIterator ( )
inline

Member Function Documentation

const char* pkgCache::PkgIterator::Arch ( ) const
inline
pkgCache* pkgCache::Iterator< Package , PkgIterator >::Cache ( ) const
inlineinherited
const char* pkgCache::PkgIterator::CandVersion ( ) const

Referenced by APT::PackageContainerInterface::const_iterator::CandVersion().

Here is the caller graph for this function:

pkgCache::VerIterator pkgCache::PkgIterator::CurrentVer ( ) const
inline

Referenced by APT::PackageContainerInterface::const_iterator::CurrentVer().

Here is the caller graph for this function:

const char* pkgCache::PkgIterator::CurVersion ( ) const

Referenced by APT::PackageContainerInterface::const_iterator::CurVersion().

Here is the caller graph for this function:

bool pkgCache::Iterator< Package , PkgIterator >::end ( ) const
inlineinherited
std::string pkgCache::PkgIterator::FullName ( bool const &  Pretty = false) const

Referenced by APT::PackageContainerInterface::const_iterator::FullName().

Here is the caller graph for this function:

unsigned long pkgCache::Iterator< Package , PkgIterator >::Index ( ) const
inlineinherited
bool pkgCache::Iterator< Package , PkgIterator >::IsGood ( ) const
inlineinherited
pkgCache::Iterator< Package , PkgIterator >::operator Package * ( )
inlineinherited
pkgCache::Iterator< Package , PkgIterator >::operator Package const * ( ) const
inlineinherited
bool pkgCache::Iterator< Package , PkgIterator >::operator!= ( const PkgIterator< Package, PkgIterator > &  B) const
inlineinherited
Package & pkgCache::Iterator< Package , PkgIterator >::operator* ( void  )
inlineinherited
Package const& pkgCache::Iterator< Package , PkgIterator >::operator* ( void  ) const
inlineinherited
virtual void pkgCache::PkgIterator::operator++ ( int  )
virtual
virtual void pkgCache::PkgIterator::operator++ ( )
inlinevirtual

Implements pkgCache::Iterator< Package, PkgIterator >.

Referenced by PkgIterator().

Here is the caller graph for this function:

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

References pkgCache::Iterator< Package, PkgIterator >::Owner, and pkgCache::PkgP.

Referenced by PkgIterator().

Here is the caller graph for this function:

pkgCache::PrvIterator pkgCache::PkgIterator::ProvidesList ( ) const
inline

Referenced by APT::PackageContainerInterface::const_iterator::ProvidesList().

Here is the caller graph for this function:

void pkgCache::Iterator< Package , PkgIterator >::ReMap ( void const *const  oldMap,
void const *const  newMap 
)
inlineinherited
pkgCache::DepIterator pkgCache::PkgIterator::RevDependsList ( ) const
inline

Referenced by APT::PackageContainerInterface::const_iterator::RevDependsList().

Here is the caller graph for this function:

const char* pkgCache::PkgIterator::Section ( ) const
inline
OkState pkgCache::PkgIterator::State ( ) const

Referenced by APT::PackageContainerInterface::const_iterator::State().

Here is the caller graph for this function:

pkgCache::VerIterator pkgCache::PkgIterator::VersionList ( ) const
inline

Referenced by APT::PackageContainerInterface::const_iterator::VersionList().

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Member Data Documentation

long pkgCache::PkgIterator::HashIndex
private
pkgCache* pkgCache::Iterator< Package , PkgIterator >::Owner
protectedinherited

Referenced by Arch(), Group(), Name(), OwnerPointer(), and Section().

Package * pkgCache::Iterator< Package , PkgIterator >::S
protectedinherited

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