ql/utilities/dataformatters.hpp File Reference


Detailed Description

output manipulators

#include <ql/utilities/null.hpp>
#include <ostream>

Include dependency graph for dataformatters.hpp:


Namespaces

namespace  QuantLib
namespace  QuantLib::detail
namespace  QuantLib::io

Functions

template<typename T>
std::ostream & operator<< (std::ostream &, const null_checker< T > &)
std::ostream & operator<< (std::ostream &, const ordinal_holder &)
template<typename T>
std::ostream & operator<< (std::ostream &, const power_of_two_holder< T > &)
std::ostream & operator<< (std::ostream &, const percent_holder &)
template<typename T>
detail::null_checker< T > checknull (T)
 check for nulls before output
detail::ordinal_holder ordinal (Size)
 outputs naturals as 1st, 2nd, 3rd...
template<typename T>
detail::power_of_two_holder<
T > 
power_of_two (T)
 output integers as powers of two
detail::percent_holder percent (Real)
 output reals as percentages
detail::percent_holder rate (Rate)
 output rates and spreads as percentages
detail::percent_holder volatility (Volatility)
 output volatilities as percentages