Qt 4.8
Public Functions | Public Variables | List of all members
QForeachContainer< T > Class Template Reference

#include <qglobal.h>

Inheritance diagram for QForeachContainer< T >:
QForeachContainerBase

Public Functions

bool condition () const
 
 QForeachContainer (const T &t)
 

Public Variables

int brk
 
const T c
 
T::const_iterator e
 
T::const_iterator i
 

Detailed Description

template<typename T>
class QForeachContainer< T >

Definition at line 2392 of file qglobal.h.

Constructors and Destructors

◆ QForeachContainer()

template<typename T >
QForeachContainer< T >::QForeachContainer ( const T &  t)
inline

Definition at line 2394 of file qglobal.h.

2394 : c(t), brk(0), i(c.begin()), e(c.end()){};
T::const_iterator i
Definition: qglobal.h:2397
T::const_iterator e
Definition: qglobal.h:2397

Functions

◆ condition()

template<typename T >
bool QForeachContainer< T >::condition ( ) const
inline

Definition at line 2398 of file qglobal.h.

2398 { return (!brk++ && i != e); }
T::const_iterator i
Definition: qglobal.h:2397
T::const_iterator e
Definition: qglobal.h:2397

Properties

◆ brk

template<typename T >
int QForeachContainer< T >::brk
mutable

Definition at line 2396 of file qglobal.h.

◆ c

template<typename T >
const T QForeachContainer< T >::c

Definition at line 2394 of file qglobal.h.

◆ e

template<typename T >
T::const_iterator QForeachContainer< T >::e
mutable

Definition at line 2397 of file qglobal.h.

◆ i

template<typename T >
T::const_iterator QForeachContainer< T >::i
mutable

Definition at line 2397 of file qglobal.h.


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