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

◆ operator<<() [2/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 447 of file floats.hpp.



ecl_formatters
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:36