QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
dataformatters.hpp File Reference

output manipulators More...

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

Go to the source code of this file.

Classes

struct  null_checker< T >
 
struct  ordinal_holder
 
struct  power_of_two_holder< T >
 
struct  percent_holder
 
struct  sequence_holder< InputIterator >
 

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 &out, const ordinal_holder &holder)
 
template<typename T >
std::ostream & operator<< (std::ostream &, const power_of_two_holder< T > &)
 
std::ostream & operator<< (std::ostream &out, const percent_holder &holder)
 
template<typename I >
std::ostream & operator<< (std::ostream &, const sequence_holder< I > &)
 
detail::ordinal_holder ordinal (Size)
 outputs naturals as 1st, 2nd, 3rd... More...
 
detail::percent_holder percent (Real)
 output reals as percentages More...
 
detail::percent_holder rate (Rate)
 output rates and spreads as percentages More...
 
detail::percent_holder volatility (Volatility)
 output volatilities as percentages More...
 
template<class Container >
detail::sequence_holder< typename Container::const_iterator > sequence (const Container &c)
 output STL-compliant containers as space-separated sequences More...
 

Variables

template<typename T >
detail::null_checker< Tchecknull (T)
 check for nulls before output More...
 
template<typename T >
detail::power_of_two_holder< Tpower_of_two (T)
 output integers as powers of two More...
 

Detailed Description

output manipulators

Definition in file dataformatters.hpp.