CopperSpice API  1.7.2
QWebElementCollection::iterator Class Reference

The QWebElementCollection::iterator class provides an STL-style iterator for QWebElementCollection. More...

Public Methods

 iterator (const iterator &o)
 
bool operator!= (const iterator &o) const
 
QWebElement operator* () const
 
iterator operator+ (size_type n) const
 
iterator & operator++ ()
 
iterator operator++ (int)
 
iterator & operator+= (size_type n)
 
size_type operator- (iterator n) const
 
iterator operator- (size_type n) const
 
iterator & operator-- ()
 
iterator operator-- (int)
 
iterator & operator-= (size_type n)
 
bool operator< (const iterator &o) const
 
bool operator<= (const iterator &o) const
 
bool operator== (const iterator &o) const
 
bool operator> (const iterator &o) const
 
bool operator>= (const iterator &o) const
 

Detailed Description

The QWebElementCollection::iterator class provides an STL-style iterator for QWebElementCollection.

QWebElementCollection provides STL style iterators for fast low-level access to the elements.

QWebElementCollection::iterator allows you to iterate over a QWebElementCollection.

See also
operator==()

Constructor & Destructor Documentation

QWebElementCollection::iterator::iterator ( const iterator &  other)
inline

Constructs a copy of other.

Method Documentation

bool QWebElementCollection::iterator::operator!= ( const iterator &  other) const
inline

Returns true if other points to a different element than this; iterator, otherwise returns false.

See also
operator==()
QWebElement QWebElementCollection::iterator::operator* ( ) const
inline

Returns the current element.

iterator QWebElementCollection::iterator::operator+ ( size_type  n) const
inline

Returns an iterator to the element at n positions forward from this iterator. If n is negative the iterator goes backward.

See also
operator-(), operator+=()
iterator & QWebElementCollection::iterator::operator++ ( )
inline

The prefix ++ operator (++it) advances the iterator to the next element in the collection and returns an iterator to the new current element.

Calling this function on QWebElementCollection::end() leads to undefined behavior.

See also
operator--()
iterator QWebElementCollection::iterator::operator++ ( int  )
inline

The postfix ++ operator (it++) advances the iterator to the next element in the collection and returns an iterator to the previously current element.

Calling this function on QWebElementCollection::end() leads to undefined behavior.

iterator & QWebElementCollection::iterator::operator+= ( size_type  n)
inline

Advances the iterator by n elements. If n is negative the iterator goes backward.

See also
operator-=(), operator+()
size_type QWebElementCollection::iterator::operator- ( iterator  other) const
inline

Returns the number of elements between the item point to by other and the element pointed to by this iterator.

iterator QWebElementCollection::iterator::operator- ( size_type  n) const
inline

Returns an iterator to the element at n positions backward from this iterator. If n is negative the iterator goes forward.

See also
operator+(), operator-=()
iterator & QWebElementCollection::iterator::operator-- ( )
inline

The prefix – operator (–it) makes the preceding element current and returns an iterator to the new current element.

Calling this function on QWebElementCollection::begin() leads to undefined behavior.

See also
operator++()
iterator QWebElementCollection::iterator::operator-- ( int  )
inline

The postfix – operator (it–) makes the preceding element current and returns an iterator to the previously current element.

iterator & QWebElementCollection::iterator::operator-= ( size_type  n)
inline

Makes the iterator go back by n elements. If n is negative the iterator goes forward.

See also
operator+=(), operator-()
bool QWebElementCollection::iterator::operator< ( const iterator &  other) const
inline

Returns true if the element pointed to by this iterator is less than the element pointed to by the other iterator.

bool QWebElementCollection::iterator::operator<= ( const iterator &  other) const
inline

Returns true if the element pointed to by this iterator is less than or equal to the element pointed to by the other iterator.

bool QWebElementCollection::iterator::operator== ( const iterator &  other) const
inline

Returns true if other points to the same item as this iterator, otherwise returns false.

See also
operator!=()
bool QWebElementCollection::iterator::operator> ( const iterator &  other) const
inline

Returns true if the element pointed to by this iterator is greater than the element pointed to by the other iterator.

bool QWebElementCollection::iterator::operator>= ( const iterator &  other) const
inline

Returns true if the element pointed to by this iterator is greater than or equal to the element pointed to by the other iterator.