Jpp  15.0.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 149 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 163 of file JPrintHelper.hh.

Constructor & Destructor Documentation

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

Constructor.

Parameters
outoutput stream

Definition at line 155 of file JPrintHelper.hh.

155  :
156  __out(out)
157  {}
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 172 of file JPrintHelper.hh.

173  {
174  return __out << manip;
175  }
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 185 of file JPrintHelper.hh.

186  {
187  return __out << object;
188  }
std::ostream & __out

Member Data Documentation

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

Definition at line 191 of file JPrintHelper.hh.


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