QList< T >::iterator Class Reference

QList< T >::iterator Class Reference

#include <qlist.h>

Class Description

template<typename T>
class QList< T >::iterator

Definition at line 181 of file qlist.h.

Public Types

typedef std::random_access_iterator_tag iterator_category
 
typedef qptrdiff difference_type
 
typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 

Public Member Functions

 iterator ()
 
 iterator (Node *n)
 
 iterator (const iterator &o)
 
T & operator* () const
 
T * operator-> () const
 
T & operator[] (int j) const
 
bool operator== (const iterator &o) const
 
bool operator!= (const iterator &o) const
 
bool operator< (const iterator &other) const
 
bool operator<= (const iterator &other) const
 
bool operator> (const iterator &other) const
 
bool operator>= (const iterator &other) const
 
bool operator== (const const_iterator &o) const
 
bool operator!= (const const_iterator &o) const
 
bool operator< (const const_iterator &other) const
 
bool operator<= (const const_iterator &other) const
 
bool operator> (const const_iterator &other) const
 
bool operator>= (const const_iterator &other) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator+= (int j)
 
iteratoroperator-= (int j)
 
iterator operator+ (int j) const
 
iterator operator- (int j) const
 
int operator- (iterator j) const
 

Public Attributes

Node * i
 

Member Typedef Documentation

typedef std::random_access_iterator_tag iterator_category

Definition at line 184 of file qlist.h.

typedef qptrdiff difference_type

Definition at line 185 of file qlist.h.

typedef T value_type

Definition at line 186 of file qlist.h.

typedef T* pointer

Definition at line 187 of file qlist.h.

typedef T& reference

Definition at line 188 of file qlist.h.

Constructor & Destructor Documentation

iterator ( )
inline

Definition at line 190 of file qlist.h.

190 : i(0) {}
Node * i
Definition: qlist.h:183
iterator ( Node *  n)
inline

Definition at line 191 of file qlist.h.

191 : i(n) {}
GLenum GLsizei n
Definition: GLee.h:3432
Node * i
Definition: qlist.h:183
iterator ( const iterator o)
inline

Definition at line 192 of file qlist.h.

192 : i(o.i){}
Node * i
Definition: qlist.h:183

Member Function Documentation

T& operator* ( ) const
inline

Definition at line 193 of file qlist.h.

193 { return i->t(); }
Node * i
Definition: qlist.h:183
T* operator-> ( void  ) const
inline

Definition at line 194 of file qlist.h.

194 { return &i->t(); }
Node * i
Definition: qlist.h:183
T& operator[] ( int  j) const
inline

Definition at line 195 of file qlist.h.

195 { return i[j].t(); }
Node * i
Definition: qlist.h:183
bool operator== ( const iterator o) const
inline

Definition at line 196 of file qlist.h.

196 { return i == o.i; }
Node * i
Definition: qlist.h:183
bool operator!= ( const iterator o) const
inline

Definition at line 197 of file qlist.h.

197 { return i != o.i; }
Node * i
Definition: qlist.h:183
bool operator< ( const iterator other) const
inline

Definition at line 198 of file qlist.h.

198 { return i < other.i; }
Node * i
Definition: qlist.h:183
bool operator<= ( const iterator other) const
inline

Definition at line 199 of file qlist.h.

199 { return i <= other.i; }
Node * i
Definition: qlist.h:183
bool operator> ( const iterator other) const
inline

Definition at line 200 of file qlist.h.

200 { return i > other.i; }
Node * i
Definition: qlist.h:183
bool operator>= ( const iterator other) const
inline

Definition at line 201 of file qlist.h.

201 { return i >= other.i; }
Node * i
Definition: qlist.h:183
bool operator== ( const const_iterator o) const
inline

Definition at line 203 of file qlist.h.

204  { return i == o.i; }
Node * i
Definition: qlist.h:183
bool operator!= ( const const_iterator o) const
inline

Definition at line 205 of file qlist.h.

206  { return i != o.i; }
Node * i
Definition: qlist.h:183
bool operator< ( const const_iterator other) const
inline

Definition at line 207 of file qlist.h.

208  { return i < other.i; }
Node * i
Definition: qlist.h:183
bool operator<= ( const const_iterator other) const
inline

Definition at line 209 of file qlist.h.

210  { return i <= other.i; }
Node * i
Definition: qlist.h:183
bool operator> ( const const_iterator other) const
inline

Definition at line 211 of file qlist.h.

212  { return i > other.i; }
Node * i
Definition: qlist.h:183
bool operator>= ( const const_iterator other) const
inline

Definition at line 213 of file qlist.h.

214  { return i >= other.i; }
Node * i
Definition: qlist.h:183
iterator& operator++ ( )
inline

Definition at line 216 of file qlist.h.

216 { ++i; return *this; }
Node * i
Definition: qlist.h:183
iterator operator++ ( int  )
inline

Definition at line 217 of file qlist.h.

217 { Node *n = i; ++i; return n; }
GLenum GLsizei n
Definition: GLee.h:3432
Node * i
Definition: qlist.h:183
iterator& operator-- ( )
inline

Definition at line 218 of file qlist.h.

218 { i--; return *this; }
Node * i
Definition: qlist.h:183
iterator operator-- ( int  )
inline

Definition at line 219 of file qlist.h.

219 { Node *n = i; i--; return n; }
GLenum GLsizei n
Definition: GLee.h:3432
Node * i
Definition: qlist.h:183
iterator& operator+= ( int  j)
inline

Definition at line 220 of file qlist.h.

220 { i+=j; return *this; }
Node * i
Definition: qlist.h:183
iterator& operator-= ( int  j)
inline

Definition at line 221 of file qlist.h.

221 { i-=j; return *this; }
Node * i
Definition: qlist.h:183
iterator operator+ ( int  j) const
inline

Definition at line 222 of file qlist.h.

222 { return iterator(i+j); }
Node * i
Definition: qlist.h:183
iterator operator- ( int  j) const
inline

Definition at line 223 of file qlist.h.

223 { return iterator(i-j); }
Node * i
Definition: qlist.h:183
int operator- ( iterator  j) const
inline

Definition at line 224 of file qlist.h.

224 { return int(i - j.i); }
unsigned int(APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer)
Definition: GLee.h:10762
Node * i
Definition: qlist.h:183

Member Data Documentation

Node* i

Definition at line 183 of file qlist.h.


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