Public Member Functions | Protected Attributes | List of all members
QTextOStreamIterator< T > Class Template Reference

#include <qtl.h>

Public Member Functions

 QTextOStreamIterator (QTextOStream &s)
 
 QTextOStreamIterator (QTextOStream &s, const QString &sep)
 
QTextOStreamIterator< T > & operator= (const T &x)
 
QTextOStreamIterator< T > & operator* ()
 
QTextOStreamIterator< T > & operator++ ()
 
QTextOStreamIterator< T > & operator++ (int)
 

Protected Attributes

QTextOStreamstream
 
QString separator
 

Detailed Description

template<class T>
class QTextOStreamIterator< T >

Definition at line 47 of file qtl.h.

Constructor & Destructor Documentation

template<class T >
QTextOStreamIterator< T >::QTextOStreamIterator ( QTextOStream s)
inline

Definition at line 54 of file qtl.h.

54 : stream( s ) {}
QTextOStream & stream
Definition: qtl.h:50
template<class T >
QTextOStreamIterator< T >::QTextOStreamIterator ( QTextOStream s,
const QString sep 
)
inline

Definition at line 55 of file qtl.h.

56  : stream( s ), separator( sep ) {}
QString separator
Definition: qtl.h:51
QTextOStream & stream
Definition: qtl.h:50

Member Function Documentation

template<class T >
QTextOStreamIterator<T>& QTextOStreamIterator< T >::operator* ( )
inline

Definition at line 63 of file qtl.h.

63 { return *this; }
template<class T >
QTextOStreamIterator<T>& QTextOStreamIterator< T >::operator++ ( )
inline

Definition at line 64 of file qtl.h.

64 { return *this; }
template<class T >
QTextOStreamIterator<T>& QTextOStreamIterator< T >::operator++ ( int  )
inline

Definition at line 65 of file qtl.h.

65 { return *this; }
template<class T >
QTextOStreamIterator<T>& QTextOStreamIterator< T >::operator= ( const T &  x)
inline

Definition at line 57 of file qtl.h.

57  {
58  stream << x;
59  if ( !separator.isEmpty() )
60  stream << separator;
61  return *this;
62  }
bool isEmpty() const
Definition: qstring.h:682
QString separator
Definition: qtl.h:51
list x
Definition: train.py:276
QTextOStream & stream
Definition: qtl.h:50

Member Data Documentation

template<class T >
QString QTextOStreamIterator< T >::separator
protected

Definition at line 51 of file qtl.h.

template<class T >
QTextOStream& QTextOStreamIterator< T >::stream
protected

Definition at line 50 of file qtl.h.


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