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::Iterator< Str, Itr > Class Template Referenceabstract

#include <pkgcache.h>

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

Public Member Functions

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

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

pkgCacheOwner
 
Str * S
 

Constructor & Destructor Documentation

template<typename Str, typename Itr>
pkgCache::Iterator< Str, Itr >::Iterator ( )
inline
template<typename Str, typename Itr>
pkgCache::Iterator< Str, Itr >::Iterator ( pkgCache Owner,
Str *  T = 0 
)
inline

Member Function Documentation

template<typename Str, typename Itr>
pkgCache* pkgCache::Iterator< Str, Itr >::Cache ( ) const
inline
template<typename Str, typename Itr>
unsigned long pkgCache::Iterator< Str, Itr >::Index ( ) const
inline
template<typename Str, typename Itr>
bool pkgCache::Iterator< Str, Itr >::IsGood ( ) const
inline
template<typename Str, typename Itr>
pkgCache::Iterator< Str, Itr >::operator Str * ( )
inline
template<typename Str, typename Itr>
pkgCache::Iterator< Str, Itr >::operator Str const * ( ) const
inline
template<typename Str, typename Itr>
bool pkgCache::Iterator< Str, Itr >::operator!= ( const Itr &  B) const
inline
template<typename Str, typename Itr>
Str& pkgCache::Iterator< Str, Itr >::operator* ( )
inline
template<typename Str, typename Itr>
Str const& pkgCache::Iterator< Str, Itr >::operator* ( ) const
inline
template<typename Str, typename Itr>
Str* pkgCache::Iterator< Str, Itr >::operator-> ( )
inline
template<typename Str, typename Itr>
Str const* pkgCache::Iterator< Str, Itr >::operator-> ( ) const
inline
template<typename Str, typename Itr>
void pkgCache::Iterator< Str, Itr >::operator= ( const Itr &  B)
inline
template<typename Str, typename Itr>
bool pkgCache::Iterator< Str, Itr >::operator== ( const Itr &  B) const
inline
template<typename Str, typename Itr>
virtual Str* pkgCache::Iterator< Str, Itr >::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.

Referenced by pkgCache::Iterator< Provides, PrvIterator >::end(), pkgCache::Iterator< Provides, PrvIterator >::Index(), pkgCache::Iterator< Version, VerIterator >::operator Version *(), and pkgCache::Iterator< Version, VerIterator >::operator Versionconst *().

Here is the caller graph for this function:

template<typename Str, typename Itr>
void pkgCache::Iterator< Str, Itr >::ReMap ( void const *const  oldMap,
void const *const  newMap 
)
inline

Member Data Documentation


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