Public Member Functions | Private Attributes | List of all members
QTSManip Class Reference

#include <qtextstream.h>

Public Member Functions

 QTSManip (QTSMFI m, int a)
 
void exec (QTextStream &s)
 

Private Attributes

QTSMFI mf
 
int arg
 

Detailed Description

Definition at line 278 of file qtextstream.h.

Constructor & Destructor Documentation

QTSManip::QTSManip ( QTSMFI  m,
int  a 
)
inline

Constructs a QTSManip object which will call m (a member function in QTextStream which accepts a single int) with argument a when QTSManip::exec() is called. Used internally in e.g. endl:

s << "some text" << endl << "more text";

Definition at line 280 of file qtextstream.h.

280 { mf=m; arg=a; }
const double a

Member Function Documentation

void QTSManip::exec ( QTextStream s)
inline

Calls the member function specified in the constructor, for object s. Used internally in e.g. endl:

s << "some text" << endl << "more text";

Definition at line 281 of file qtextstream.h.

281 { (s.*mf)(arg); }
QTSMFI mf
Definition: qtextstream.h:283

Member Data Documentation

int QTSManip::arg
private

Definition at line 284 of file qtextstream.h.

QTSMFI QTSManip::mf
private

Definition at line 283 of file qtextstream.h.


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