Jpp  18.0.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
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. More...
 

Public Member Functions

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

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

typedef 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

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

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  }
std::ostream & __out
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  }
std::ostream & __out

Member Data Documentation

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: