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
pkgAcquire::UriIterator Class Reference

Iterates over all the URIs being fetched by a pkgAcquire object. More...

#include <acquire.h>

Collaboration diagram for pkgAcquire::UriIterator:

Public Member Functions

 UriIterator (pkgAcquire::Queue *Q)
 Create a new UriIterator. More...
 
virtual ~UriIterator ()
 
bool operator!= (UriIterator const &rhs) const
 
void operator++ ()
 
void operator++ (int)
 
pkgAcquire::ItemDesc const * operator-> () const
 
bool operator== (UriIterator const &rhs) const
 

Private Attributes

pkgAcquire::Queue::QItemCurItem
 The item that we currently point at. More...
 
pkgAcquire::QueueCurQ
 The next queue to iterate over. More...
 
void * d
 dpointer placeholder (for later in case we need it) More...
 

Detailed Description

Iterates over all the URIs being fetched by a pkgAcquire object.

{{{

Constructor & Destructor Documentation

pkgAcquire::UriIterator::UriIterator ( pkgAcquire::Queue Q)
inline

Create a new UriIterator.

Parameters
QThe queue over which this UriIterator should iterate.

References CurItem, CurQ, pkgAcquire::Queue::Items, and pkgAcquire::Queue::Next.

virtual pkgAcquire::UriIterator::~UriIterator ( )
inlinevirtual

Member Function Documentation

bool pkgAcquire::UriIterator::operator!= ( UriIterator const &  rhs) const
inline

References CurItem, and CurQ.

void pkgAcquire::UriIterator::operator++ ( )
inline
void pkgAcquire::UriIterator::operator++ ( int  )
inline
pkgAcquire::ItemDesc const* pkgAcquire::UriIterator::operator-> ( ) const
inline

References CurItem.

bool pkgAcquire::UriIterator::operator== ( UriIterator const &  rhs) const
inline

References CurItem, and CurQ.

Member Data Documentation

pkgAcquire::Queue::QItem* pkgAcquire::UriIterator::CurItem
private

The item that we currently point at.

Referenced by operator!=(), operator++(), operator->(), operator==(), and UriIterator().

pkgAcquire::Queue* pkgAcquire::UriIterator::CurQ
private

The next queue to iterate over.

Referenced by operator!=(), operator++(), operator==(), and UriIterator().

void* pkgAcquire::UriIterator::d
private

dpointer placeholder (for later in case we need it)


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