QList< T >::const_iterator Class Reference

QList< T >::const_iterator Class Reference

#include <qlist.h>

Class Description

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

Definition at line 228 of file qlist.h.

Public Types

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

Public Member Functions

 const_iterator ()
 
 const_iterator (Node *n)
 
 const_iterator (const const_iterator &o)
 
 const_iterator (const iterator &o)
 
const T & operator* () const
 
const T * operator-> () const
 
const T & operator[] (int j) 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
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator+= (int j)
 
const_iteratoroperator-= (int j)
 
const_iterator operator+ (int j) const
 
const_iterator operator- (int j) const
 
int operator- (const_iterator j) const
 

Public Attributes

Node * i
 

Member Typedef Documentation

typedef std::random_access_iterator_tag iterator_category

Definition at line 231 of file qlist.h.

typedef qptrdiff difference_type

Definition at line 232 of file qlist.h.

typedef T value_type

Definition at line 233 of file qlist.h.

typedef const T* pointer

Definition at line 234 of file qlist.h.

typedef const T& reference

Definition at line 235 of file qlist.h.

Constructor & Destructor Documentation

const_iterator ( )
inline

Definition at line 237 of file qlist.h.

237 : i(0) {}
const_iterator ( Node *  n)
inline

Definition at line 238 of file qlist.h.

238 : i(n) {}
GLenum GLsizei n
Definition: GLee.h:3432
const_iterator ( const const_iterator o)
inline

Definition at line 239 of file qlist.h.

239 : i(o.i) {}
const_iterator ( const iterator o)
inline

Definition at line 243 of file qlist.h.

243 : i(o.i) {}

Member Function Documentation

const T& operator* ( ) const
inline

Definition at line 245 of file qlist.h.

245 { return i->t(); }
const T* operator-> ( void  ) const
inline

Definition at line 246 of file qlist.h.

246 { return &i->t(); }
const T& operator[] ( int  j) const
inline

Definition at line 247 of file qlist.h.

247 { return i[j].t(); }
bool operator== ( const const_iterator o) const
inline

Definition at line 248 of file qlist.h.

248 { return i == o.i; }
bool operator!= ( const const_iterator o) const
inline

Definition at line 249 of file qlist.h.

249 { return i != o.i; }
bool operator< ( const const_iterator other) const
inline

Definition at line 250 of file qlist.h.

250 { return i < other.i; }
bool operator<= ( const const_iterator other) const
inline

Definition at line 251 of file qlist.h.

251 { return i <= other.i; }
bool operator> ( const const_iterator other) const
inline

Definition at line 252 of file qlist.h.

252 { return i > other.i; }
bool operator>= ( const const_iterator other) const
inline

Definition at line 253 of file qlist.h.

253 { return i >= other.i; }
const_iterator& operator++ ( )
inline

Definition at line 254 of file qlist.h.

254 { ++i; return *this; }
const_iterator operator++ ( int  )
inline

Definition at line 255 of file qlist.h.

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

Definition at line 256 of file qlist.h.

256 { i--; return *this; }
const_iterator operator-- ( int  )
inline

Definition at line 257 of file qlist.h.

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

Definition at line 258 of file qlist.h.

258 { i+=j; return *this; }
const_iterator& operator-= ( int  j)
inline

Definition at line 259 of file qlist.h.

259 { i-=j; return *this; }
const_iterator operator+ ( int  j) const
inline

Definition at line 260 of file qlist.h.

260 { return const_iterator(i+j); }
const_iterator operator- ( int  j) const
inline

Definition at line 261 of file qlist.h.

261 { return const_iterator(i-j); }
int operator- ( const_iterator  j) const
inline

Definition at line 262 of file qlist.h.

262 { return i - j.i; }

Member Data Documentation

Node* i

Definition at line 230 of file qlist.h.


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