|
QDP++
|
Text buffer input class. More...
#include <qdp_io.h>
Public Member Functions | |
| TextBufferReader () | |
| ~TextBufferReader () | |
| Shutdown the buffer. | |
| TextBufferReader (const std::string &p) | |
| void | open (const std::string &p) |
| Opens a buffer for reading. | |
| std::string | str () const |
| Return entire buffer as a string. | |
| std::string | strPrimaryNode () const |
| Return entire buffer as a string. | |
| Public Member Functions inherited from QDP::TextReader | |
| 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 | |
| std::istream & | getIstream () |
| Get the internal input stream. | |
| Protected Member Functions inherited from QDP::TextReader | |
| template<typename T> | |
| void | readPrimitive (T &output) |
| The universal data-reader. | |
Text buffer input class.
This class is used to read data from a text buffer. 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,
| QDP::TextBufferReader::~TextBufferReader | ( | ) |
|
explicit |
|
inlineprotectedvirtual |
| void QDP::TextBufferReader::open | ( | const std::string & | p | ) |
Opens a buffer for reading.
| p | The string of input |
Definition at line 189 of file qdp_io.cc.
References QDP::Layout::primaryNode().
Referenced by TextBufferReader().
| std::string QDP::TextBufferReader::str | ( | ) | const |
Return entire buffer as a string.
Definition at line 207 of file qdp_io.cc.
References QDP::QDPInternal::broadcast(), and QDP::Layout::primaryNode().
| std::string QDP::TextBufferReader::strPrimaryNode | ( | ) | const |
Return entire buffer as a string.
Definition at line 196 of file qdp_io.cc.
References QDP::Layout::primaryNode().