MIRA
|
Numerical stream adapter that can be assigned to any output stream and allows streaming of numerical values. More...
#include <stream/NumericalStream.h>
Public Member Functions | |
NumericalOstream (std::ostream &s) | |
Constructs a NumericalOstream around the specified existing std::ostream. More... | |
template<typename T > | |
NumericalOstream & | operator<< (const T &val) |
NumericalOstream & | operator<< (std::ostream &(*pf)(std::ostream &)) |
NumericalOstream & | operator<< (float val) |
NumericalOstream & | operator<< (double val) |
NumericalOstream & | operator<< (long double val) |
Public Attributes | |
std::ostream & | out |
The underlying output stream. More... | |
Numerical stream adapter that can be assigned to any output stream and allows streaming of numerical values.
In contrast to the default std::ostream implementation, this class is able to handle nan and inf values correctly.
This class can be used like any other std::ostream, as shown in the following Example:
|
inline |
Constructs a NumericalOstream around the specified existing std::ostream.
All outputs written to the NumericalOstream will be relayed to that std::ostream internally. The std::ostream must exist while this NumericalOstream object is existent.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::ostream& out |
The underlying output stream.