PrecisionWrapper.h File Reference
#include <OpenMS/config.h>
#include <OpenMS/CONCEPT/Types.h>
#include <OpenMS/DATASTRUCTURES/String.h>
#include <iostream>
Include dependency graph for PrecisionWrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  PrecisionWrapper< FloatingPointType >
 Wrapper class to implement output with appropriate precision. See precisionWrapper(). More...


 Main OpenMS namespace.


template<typename FloatingPointType >
const PrecisionWrapper< FloatingPointType > precisionWrapper (const FloatingPointType rhs)
 Wrapper function that sets the appropriate precision for output temporarily. The original precision is restored afterwards so that no side effects remain. This is a "make"-function that deduces the typename FloatingPointType from its argument and returns a PrecisionWrapper<FloatingPointType>. More...
template<typename FloatingPointType >
std::ostream & operator<< (std::ostream &os, const PrecisionWrapper< FloatingPointType > &rhs)
 Output operator for a PrecisionWrapper. Specializations are defined for float, double, long double. More...