|
QDP++
|
StandardInputStream class. More...
#include <qdp_stdio.h>
Public Member Functions | |
| StandardInputStream () | |
| Constructor. | |
| ~StandardInputStream () | |
| destructor | |
| void | init (std::istream *is) |
| Constructor from a stream. | |
| bool | fail () |
| Return true if some failure occurred in previous IO operation. | |
| StandardInputStream & | operator>> (std::string &input) |
| StandardInputStream & | operator>> (char &input) |
| StandardInputStream & | operator>> (int &input) |
| StandardInputStream & | operator>> (unsigned int &input) |
| StandardInputStream & | operator>> (short int &input) |
| StandardInputStream & | operator>> (unsigned short int &input) |
| StandardInputStream & | operator>> (long int &input) |
| StandardInputStream & | operator>> (unsigned long int &input) |
| StandardInputStream & | operator>> (long long int &input) |
| StandardInputStream & | operator>> (float &input) |
| StandardInputStream & | operator>> (double &input) |
| StandardInputStream & | operator>> (long double &input) |
| StandardInputStream & | operator>> (bool &input) |
Protected Member Functions | |
| template<typename T> | |
| StandardInputStream & | readPrimitive (T &output) |
| std::istream & | getIstream () |
| bool | is_open () |
| Is the stream open? | |
StandardInputStream class.
Parallel version of standard input
Definition at line 32 of file qdp_stdio.h.
| QDP::StandardInputStream::StandardInputStream | ( | ) |
Constructor.
stdin support
Definition at line 28 of file qdp_stdio.cc.
Referenced by operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), and readPrimitive().
| QDP::StandardInputStream::~StandardInputStream | ( | ) |
destructor
Definition at line 48 of file qdp_stdio.cc.
| bool QDP::StandardInputStream::fail | ( | ) |
Return true if some failure occurred in previous IO operation.
Definition at line 37 of file qdp_stdio.cc.
References QDP::QDPInternal::broadcast(), getIstream(), and QDP::Layout::primaryNode().
|
inlineprotected |
Definition at line 77 of file qdp_stdio.h.
Referenced by fail(), operator>>(), and readPrimitive().
| void QDP::StandardInputStream::init | ( | std::istream * | is | ) |
Constructor from a stream.
Definition at line 30 of file qdp_stdio.cc.
|
inlineprotected |
Is the stream open?
Definition at line 80 of file qdp_stdio.h.
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | bool & | input | ) |
Definition at line 111 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | char & | input | ) |
Definition at line 67 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | double & | input | ) |
Definition at line 103 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | float & | input | ) |
Definition at line 99 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | int & | input | ) |
Definition at line 71 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | long double & | input | ) |
Definition at line 107 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | long int & | input | ) |
Definition at line 87 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | long long int & | input | ) |
Definition at line 95 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | short int & | input | ) |
Definition at line 79 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | std::string & | input | ) |
Definition at line 52 of file qdp_stdio.cc.
References QDP::QDPInternal::broadcast_str(), getIstream(), QDP::Layout::primaryNode(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | unsigned int & | input | ) |
Definition at line 75 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | unsigned long int & | input | ) |
Definition at line 91 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
| StandardInputStream & QDP::StandardInputStream::operator>> | ( | unsigned short int & | input | ) |
Definition at line 83 of file qdp_stdio.cc.
References readPrimitive(), and StandardInputStream().
|
protected |
Definition at line 117 of file qdp_stdio.cc.
References QDP::QDPInternal::broadcast(), getIstream(), QDP::Layout::primaryNode(), and StandardInputStream().
Referenced by operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), operator>>(), and operator>>().