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, FormatFloat< N > &formatter)
 
template<typename OutputStream , typename N >
OutputStream & operator<< (OutputStream &ostream, FormatNumber< N > &formatter)
 

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

◆ operator<<() [1/2]

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 453 of file floats.hpp.

◆ operator<<() [2/2]

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 367 of file number.hpp.



ecl_formatters
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:09