Classes | Functions
ecl::interfaces Namespace Reference

Supporting elements and interfaces. More...

Classes

class  FormatFloat
 Formatter for float types. More...
class  FormatNumber
 Formatter for integral types. More...

Functions

template<typename OutputStream , typename N >
OutputStream & operator<< (OutputStream &ostream, FormatNumber< N > &formatter) ecl_assert_throw_decl(StandardException)
template<typename OutputStream , typename N >
OutputStream & operator<< (OutputStream &ostream, FormatFloat< N > &formatter) ecl_assert_throw_decl(StandardException)

Detailed Description

Supporting elements and interfaces.

These provide support for the elements in this package. They are not intended to be directly visible to the user.


Function Documentation

template<typename OutputStream , typename N >
OutputStream& ecl::interfaces::operator<< ( OutputStream &  ostream,
FormatNumber< N > &  formatter 
)

Friend function which allows a stream to act on the formatter to produce the formatted result. This works on normal c++ streams as well as TextStreams.

Parameters:
ostream: the stream.
formatter: the formatter with prespecified format parameters and input value.
Returns:
OutputStream& : return the stream that was utilised.
Exceptions:
StandardException: throws if the formatter is used multiply in one stream operation [debug mode only].

Definition at line 361 of file number.hpp.

template<typename OutputStream , typename N >
OutputStream& ecl::interfaces::operator<< ( OutputStream &  ostream,
FormatFloat< N > &  formatter 
)

Friend function which allows a stream to act on the formatter to produce the formatted result. This works on normal c++ streams as well as TextStreams.

Parameters:
ostream: the stream.
formatter: the formatter with prespecified format parameters and input value.
Returns:
OutputStream& : return the stream that was utilised.

Definition at line 447 of file floats.hpp.



ecl_formatters
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:17:36