Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JPrinter Struct Reference

Auxiliary class to temporarily replace std::ostream. More...

#include <JPrintHelper.hh>

Public Types

typedef std::ostream &(*) io_manip(std::ostream &)
 Type definition of I/O operator.
 

Public Member Functions

 JPrinter (std::ostream &out)
 Constructor.
 
std::ostream & operator<< (io_manip manip)
 Parse I/O manipulator.
 
template<class T >
std::ostream & operator<< (const T &object)
 Parse object.
 

Private Attributes

std::ostream & __out
 

Detailed Description

Auxiliary class to temporarily replace std::ostream.

Definition at line 155 of file JPrintHelper.hh.

Member Typedef Documentation

◆ io_manip

std::ostream &(*) JLANG::JPrinter::io_manip(std::ostream &)

Type definition of I/O operator.

Definition at line 169 of file JPrintHelper.hh.

Constructor & Destructor Documentation

◆ JPrinter()

JLANG::JPrinter::JPrinter ( std::ostream & out)
inline

Constructor.

Parameters
outoutput stream

Definition at line 161 of file JPrintHelper.hh.

161 :
162 __out(out)
163 {}
std::ostream & __out

Member Function Documentation

◆ operator<<() [1/2]

std::ostream & JLANG::JPrinter::operator<< ( io_manip manip)
inline

Parse I/O manipulator.

Parameters
manipI/O manipulator
Returns
output stream

Definition at line 178 of file JPrintHelper.hh.

179 {
180 return __out << manip;
181 }

◆ operator<<() [2/2]

template<class T >
std::ostream & JLANG::JPrinter::operator<< ( const T & object)
inline

Parse object.

Parameters
objectobject
Returns
output stream

Definition at line 191 of file JPrintHelper.hh.

192 {
193 return __out << object;
194 }

Member Data Documentation

◆ __out

std::ostream& JLANG::JPrinter::__out
private

Definition at line 197 of file JPrintHelper.hh.


The documentation for this struct was generated from the following file: