MIRA
|
Numerical stream adapter that can be assigned to any input stream and allows streaming of numerical values. More...
#include <stream/NumericalStream.h>
Public Member Functions | |
NumericalIstream (std::istream &s) | |
Constructs a NumericalIstream around the specified existing istream. More... | |
template<typename T > | |
NumericalIstream & | operator>> (T &val) |
NumericalIstream & | operator>> (std::istream &(*pf)(std::istream &)) |
NumericalIstream & | operator>> (float &val) |
NumericalIstream & | operator>> (double &val) |
NumericalIstream & | operator>> (long double &val) |
Public Attributes | |
std::istream & | in |
The underlying input stream. More... | |
Numerical stream adapter that can be assigned to any input stream and allows streaming of numerical values.
In contrast to the default std::istream implementation, this class is able to handle nan and inf values correctly.
This class can be used with different stream "underlays". The underlay provides the actual stream functionality and stores or transmits the data. Currently the binary stream comes in two flavors:
This class can be used like any other std::istream, as shown in the
|
inline |
Constructs a NumericalIstream around the specified existing istream.
All input from the NumericalIstream will be relayed to that istream internally. The istream must exist while this NumericalIstream object is existent.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::istream& in |
The underlying input stream.