QQueue< T > Class Template Reference

QQueue< T > Class Template Reference

#include <qcontainerfwd.h>

Class Description

template<class T>
class QQueue< T >

Definition at line 61 of file qcontainerfwd.h.

+ Inheritance diagram for QQueue< T >:

Public Member Functions

 QQueue ()
 
 ~QQueue ()
 
void swap (QQueue< T > &other)
 
void enqueue (const T &t)
 
dequeue ()
 
T & head ()
 
const T & head () const
 
- Public Member Functions inherited from QList< T >
 QList ()
 
 QList (const QList< T > &l)
 
 ~QList ()
 
QList< T > & operator= (const QList< T > &l)
 
void swap (QList< T > &other)
 
bool operator== (const QList< T > &l) const
 
bool operator!= (const QList< T > &l) const
 
int size () const
 
void detach ()
 
void detachShared ()
 
bool isDetached () const
 
void setSharable (bool sharable)
 
bool isSharedWith (const QList< T > &other) const
 
bool isEmpty () const
 
void clear ()
 
const T & at (int i) const
 
const T & operator[] (int i) const
 
T & operator[] (int i)
 
void reserve (int size)
 
void append (const T &t)
 
void append (const QList< T > &t)
 
void prepend (const T &t)
 
void insert (int i, const T &t)
 
void replace (int i, const T &t)
 
void removeAt (int i)
 
int removeAll (const T &t)
 
bool removeOne (const T &t)
 
takeAt (int i)
 
takeFirst ()
 
takeLast ()
 
void move (int from, int to)
 
void swap (int i, int j)
 
int indexOf (const T &t, int from=0) const
 
int lastIndexOf (const T &t, int from=-1) const
 
QBool contains (const T &t) const
 
int count (const T &t) const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator constEnd () const
 
iterator insert (iterator before, const T &t)
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
int count () const
 
int length () const
 
T & first ()
 
const T & first () const
 
T & last ()
 
const T & last () const
 
void removeFirst ()
 
void removeLast ()
 
bool startsWith (const T &t) const
 
bool endsWith (const T &t) const
 
QList< T > mid (int pos, int length=-1) const
 
value (int i) const
 
value (int i, const T &defaultValue) const
 
void push_back (const T &t)
 
void push_front (const T &t)
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
void pop_front ()
 
void pop_back ()
 
bool empty () const
 
QList< T > & operator+= (const QList< T > &l)
 
QList< T > operator+ (const QList< T > &l) const
 
QList< T > & operator+= (const T &t)
 
QList< T > & operator<< (const T &t)
 
QList< T > & operator<< (const QList< T > &l)
 
QVector< T > toVector () const
 
QSet< T > toSet () const
 
std::list< T > toStdList () const
 

Additional Inherited Members

- Public Types inherited from QList< T >
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 
typedef int size_type
 
typedef T value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef qptrdiff difference_type
 
- Static Public Member Functions inherited from QList< T >
static QList< T > fromVector (const QVector< T > &vector)
 
static QList< T > fromSet (const QSet< T > &set)
 
static QList< T > fromStdList (const std::list< T > &list)
 

Constructor & Destructor Documentation

QQueue ( )
inline

Definition at line 57 of file qqueue.h.

57 {}
~QQueue ( )
inline

Definition at line 58 of file qqueue.h.

58 {}

Member Function Documentation

void swap ( QQueue< T > &  other)
inline

Definition at line 59 of file qqueue.h.

59 { QList<T>::swap(other); } // prevent QList<->QQueue swaps
void swap(QList< T > &other)
Definition: qlist.h:129
void enqueue ( const T &  t)
inline

Definition at line 60 of file qqueue.h.

60 { QList<T>::append(t); }
void append(const T &t)
Definition: qlist.h:507
GLdouble GLdouble t
Definition: GLee.h:1181
T dequeue ( )
inline

Definition at line 61 of file qqueue.h.

61 { return QList<T>::takeFirst(); }
T takeFirst()
Definition: qlist.h:489
T& head ( )
inline

Definition at line 62 of file qqueue.h.

62 { return QList<T>::first(); }
T & first()
Definition: qlist.h:282
const T& head ( ) const
inline

Definition at line 63 of file qqueue.h.

63 { return QList<T>::first(); }
T & first()
Definition: qlist.h:282

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