24#ifndef quantlib_data_formatters_hpp
25#define quantlib_data_formatters_hpp
102 template <
class Container>
111 template <
typename T>
120 template <
typename T>
137 template <
class Container>
148 template <
typename T>
152 return out <<
"null";
154 return out << checker.
value;
157 template <
typename T>
161 return out <<
"null";
171 return out <<
n <<
"*2^" << power;
174 template <
typename I>
178 for (I i = holder.
begin; i != holder.
end; ++i)
template class providing a null value for a given type.
detail::sequence_holder< typename Container::const_iterator > sequence(const Container &c)
output STL-compliant containers as space-separated sequences
detail::percent_holder volatility(Volatility)
output volatilities as percentages
detail::percent_holder rate(Rate)
output rates and spreads as percentages
detail::null_checker< T > checknull(T)
check for nulls before output
detail::power_of_two_holder< T > power_of_two(T)
output integers as powers of two
detail::ordinal_holder ordinal(Size)
outputs naturals as 1st, 2nd, 3rd...
detail::percent_holder percent(Real)
output reals as percentages
Real Volatility
volatility
QL_INTEGER Integer
integer number
std::size_t Size
size of a container
std::ostream & operator<<(std::ostream &out, const short_date_holder &holder)
ext::shared_ptr< YieldTermStructure > r
ext::shared_ptr< BlackVolTermStructure > v
percent_holder(Real value)
sequence_holder(InputIterator begin, InputIterator end)