|
QDP++
|
Text input class. More...
#include <qdp_io.h>
Public Member Functions | |
| TextReader () | |
| virtual | ~TextReader () |
| virtual bool | fail () |
| Checks status of the previous IO operation. | |
| virtual void | read (std::string &result) |
| virtual void | read (char &result) |
| virtual void | read (int &result) |
| virtual void | read (unsigned int &result) |
| virtual void | read (short int &result) |
| virtual void | read (unsigned short int &result) |
| virtual void | read (long int &result) |
| virtual void | read (unsigned long int &result) |
| virtual void | read (long long int &result) |
| virtual void | read (float &result) |
| virtual void | read (double &result) |
| virtual void | read (bool &result) |
Protected Member Functions | |
| template<typename T> | |
| void | readPrimitive (T &output) |
| The universal data-reader. | |
| virtual std::istream & | getIstream ()=0 |
| Get the internal input stream. | |
Text input class.
This class is used to read data from a text object. Input is done on the primary node and all nodes end up with the same data.
The read methods are also wrapped by externally defined >> operators,
|
inlinevirtual |
|
virtual |
Checks status of the previous IO operation.
Definition at line 18 of file qdp_io.cc.
References QDP::QDPInternal::broadcast(), getIstream(), and QDP::Layout::primaryNode().
|
protectedpure virtual |
Get the internal input stream.
Implemented in QDP::TextBufferReader, and QDP::TextFileReader.
Referenced by fail(), read(), and readPrimitive().
|
virtual |
Definition at line 105 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 65 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 101 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 97 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 69 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 85 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 93 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 77 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 30 of file qdp_io.cc.
References QDP::QDPInternal::broadcast(), getIstream(), QDP::Layout::primaryNode(), and QDP::QDP_error_exit().
Referenced by QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), QDP::operator>>(), and QDP::operator>>().
|
virtual |
Definition at line 73 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 89 of file qdp_io.cc.
References readPrimitive().
|
virtual |
Definition at line 81 of file qdp_io.cc.
References readPrimitive().
|
protected |
The universal data-reader.
All the read functions call this.
| output | The location to which the datum is read. |
Definition at line 111 of file qdp_io.cc.
References QDP::QDPInternal::broadcast(), getIstream(), and QDP::Layout::primaryNode().
Referenced by read(), read(), read(), read(), read(), read(), read(), read(), read(), read(), and read().