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

#include <cacheiterators.h>

Inheritance diagram for pkgCache::DepIterator:
Collaboration diagram for pkgCache::DepIterator:

Public Member Functions

 DepIterator (pkgCache &Owner, Dependency *Trg, Version *=0)
 
 DepIterator (pkgCache &Owner, Dependency *Trg, Package *)
 
 DepIterator ()
 
Version ** AllTargets () const
 
pkgCacheCache () const
 
const char * CompType () const
 
const char * DepType () const
 
bool end () const
 
void GlobOr (DepIterator &Start, DepIterator &End)
 
unsigned long Index () const
 
bool IsCritical () const
 
bool IsGood () const
 
bool IsIgnorable (PrvIterator const &Prv) const
 
bool IsIgnorable (PkgIterator const &Pkg) const
 
bool IsMultiArchImplicit () const
 
bool IsNegative () const
 
 operator Dependency * ()
 
 operator Dependencyconst * () const
 
bool operator!= (const DepIterator &B) const
 
Dependencyoperator* ()
 
Dependencyconst & operator* () const
 
void operator++ (int)
 
void operator++ ()
 
Dependencyoperator-> ()
 
Dependencyconst * operator-> () const
 
bool operator== (const DepIterator &B) const
 
PkgIterator ParentPkg () const
 
VerIterator ParentVer () const
 
void ReMap (void const *const oldMap, void const *const newMap)
 
bool Reverse () const
 
PkgIterator SmartTargetPkg () const
 
bool SmartTargetPkg (PkgIterator &Result) const
 
PkgIterator TargetPkg () const
 
const char * TargetVer () const
 

Protected Member Functions

DependencyOwnerPointer () 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
 
DependencyS
 

Private Types

enum  {
  DepVer,
  DepRev
}
 

Private Attributes

enum pkgCache::DepIterator:: { ... }  Type
 

Friends

std::ostream & operator<< (std::ostream &out, DepIterator D)
 

Member Enumeration Documentation

anonymous enum
private
Enumerator
DepVer 
DepRev 

Constructor & Destructor Documentation

pkgCache::DepIterator::DepIterator ( pkgCache Owner,
Dependency Trg,
Version = 0 
)
inline
pkgCache::DepIterator::DepIterator ( pkgCache Owner,
Dependency Trg,
Package  
)
inline
pkgCache::DepIterator::DepIterator ( )
inline

Member Function Documentation

Version** pkgCache::DepIterator::AllTargets ( ) const
pkgCache* pkgCache::Iterator< Dependency , DepIterator >::Cache ( ) const
inlineinherited
const char* pkgCache::DepIterator::CompType ( ) const
inline
const char* pkgCache::DepIterator::DepType ( ) const
inline
bool pkgCache::Iterator< Dependency , DepIterator >::end ( ) const
inlineinherited
void pkgCache::DepIterator::GlobOr ( DepIterator Start,
DepIterator End 
)
unsigned long pkgCache::Iterator< Dependency , DepIterator >::Index ( ) const
inlineinherited
bool pkgCache::DepIterator::IsCritical ( ) const
bool pkgCache::Iterator< Dependency , DepIterator >::IsGood ( ) const
inlineinherited
bool pkgCache::DepIterator::IsIgnorable ( PrvIterator const &  Prv) const
bool pkgCache::DepIterator::IsIgnorable ( PkgIterator const &  Pkg) const
bool pkgCache::DepIterator::IsMultiArchImplicit ( ) const
bool pkgCache::DepIterator::IsNegative ( ) const
pkgCache::Iterator< Dependency , DepIterator >::operator Dependency * ( )
inlineinherited
pkgCache::Iterator< Dependency , DepIterator >::operator Dependency const * ( ) const
inlineinherited
bool pkgCache::Iterator< Dependency , DepIterator >::operator!= ( const DepIterator< Dependency, DepIterator > &  B) const
inlineinherited
Dependency & pkgCache::Iterator< Dependency , DepIterator >::operator* ( void  )
inlineinherited
Dependency const& pkgCache::Iterator< Dependency , DepIterator >::operator* ( void  ) const
inlineinherited
void pkgCache::DepIterator::operator++ ( )
inlinevirtual
Dependency * pkgCache::Iterator< Dependency , DepIterator >::operator-> ( )
inlineinherited
Dependency const* pkgCache::Iterator< Dependency , DepIterator >::operator-> ( ) const
inlineinherited
bool pkgCache::Iterator< Dependency , DepIterator >::operator== ( const DepIterator< Dependency, DepIterator > &  B) const
inlineinherited
Dependency* pkgCache::DepIterator::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< Dependency, DepIterator >.

References pkgCache::DepP, and pkgCache::Iterator< Dependency, DepIterator >::Owner.

void pkgCache::Iterator< Dependency , DepIterator >::ReMap ( void const *const  oldMap,
void const *const  newMap 
)
inlineinherited
bool pkgCache::DepIterator::Reverse ( ) const
inline

References DepRev, and Type.

PkgIterator pkgCache::DepIterator::SmartTargetPkg ( ) const
inline

References pkgCache::Iterator< Dependency, DepIterator >::Owner, and SmartTargetPkg().

Referenced by SmartTargetPkg().

Here is the call graph for this function:

Here is the caller graph for this function:

bool pkgCache::DepIterator::SmartTargetPkg ( PkgIterator Result) const

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
DepIterator  D 
)
friend

Member Data Documentation

enum { ... } pkgCache::DepIterator::Type

Referenced by operator++(), and Reverse().


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