QMutableSetIterator< T > Class Template Reference
#include <qset.h>
template<typename T>
class QMutableSetIterator< T >
Definition at line 333 of file qset.h.
Definition at line 341 of file qset.h.
343 {
c->setSharable(
false); i =
c->begin();
n =
c->end(); }
Definition at line 344 of file qset.h.
345 {
c->setSharable(
true); }
Definition at line 346 of file qset.h.
348 i =
c->begin();
n =
c->end();
return *
this; }
void setSharable(bool sharable)
Definition at line 349 of file qset.h.
349 { i =
c->begin();
n =
c->end(); }
Definition at line 350 of file qset.h.
350 { i =
c->end();
n = i; }
Definition at line 351 of file qset.h.
351 {
return c->constEnd() != i; }
Definition at line 352 of file qset.h.
352 {
n = i++;
return *
n; }
const T& peekNext |
( |
| ) |
const |
|
inline |
bool hasPrevious |
( |
| ) |
const |
|
inline |
Definition at line 354 of file qset.h.
354 {
return c->constBegin() != i; }
Definition at line 355 of file qset.h.
355 {
n = --i;
return *
n; }
const T& peekPrevious |
( |
| ) |
const |
|
inline |
Definition at line 356 of file qset.h.
356 { iterator
p = i;
return *--
p; }
Definition at line 357 of file qset.h.
358 {
if (
c->constEnd() !=
n) { i =
c->erase(
n);
n =
c->end(); } }
Definition at line 359 of file qset.h.
359 { Q_ASSERT(item_exists());
return *
n; }
bool findNext |
( |
const T & |
t | ) |
|
|
inline |
Definition at line 360 of file qset.h.
361 {
while (
c->constEnd() != (
n = i))
if (*i++ ==
t)
return true;
return false; }
bool findPrevious |
( |
const T & |
t | ) |
|
|
inline |
Definition at line 362 of file qset.h.
363 {
while (
c->constBegin() != i)
if (*(
n = --i) ==
t)
return true;
364 n =
c->end();
return false; }
The documentation for this class was generated from the following file: