| OpenMS 2.5.0

Classes | Namespaces | Functions
PrecisionWrapper.h File Reference
`#include <OpenMS/config.h>`
`#include <OpenMS/CONCEPT/Types.h>`
`#include <OpenMS/DATASTRUCTURES/String.h>`
`#include <iostream>`

Go to the source code of this file.

## Classes

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

## Namespaces

| OpenMS
| Main OpenMS namespace.

## Functions

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...