Auxiliary class for format stream.
More...
#include <JStreamAvailable.hh>
|
template<class T > |
std::ostream & | print (std::ostream &out, const T &value, const JLANG::JBool< true > &option) |
| Print value if given option is true. More...
|
|
template<class T > |
std::ostream & | print (std::ostream &out, const T &value, const JLANG::JBool< false > &option) |
| Print value if given option is true. More...
|
|
Auxiliary class for format stream.
Definition at line 86 of file JStreamAvailable.hh.
◆ JStream()
STREAM::JStream::JStream |
( |
std::ostream & |
out, |
|
|
const std::string & |
message |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
out | output stream |
message | message printed in case operator std::ostream<< is unavailable |
Definition at line 94 of file JStreamAvailable.hh.
◆ operator<<()
template<class T >
std::ostream& STREAM::JStream::operator<< |
( |
const T & |
value | ) |
|
|
inline |
◆ print() [1/2]
template<class T >
std::ostream& STREAM::JStream::print |
( |
std::ostream & |
out, |
|
|
const T & |
value, |
|
|
const JLANG::JBool< true > & |
option |
|
) |
| |
|
inlineprivate |
Print value if given option is true.
- Parameters
-
out | output stream |
value | value |
option | true |
- Returns
- output stream
Definition at line 124 of file JStreamAvailable.hh.
◆ print() [2/2]
template<class T >
std::ostream& STREAM::JStream::print |
( |
std::ostream & |
out, |
|
|
const T & |
value, |
|
|
const JLANG::JBool< false > & |
option |
|
) |
| |
|
inlineprivate |
Print value if given option is true.
- Parameters
-
out | output stream |
value | value |
option | false |
- Returns
- output stream
Definition at line 138 of file JStreamAvailable.hh.
◆ out
std::ostream& STREAM::JStream::out |
|
private |
◆ message
std::string STREAM::JStream::message |
|
private |
The documentation for this struct was generated from the following file: