Jpp  18.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | Friends | List of all members
JLANG::JEndOfLine Struct Reference

Auxiliary class for end of line. More...

#include <JEquationFacet.hh>

Public Member Functions

 JEndOfLine ()
 Default constructor. More...
 
const JEndOfLineoperator() (const unsigned int i) const
 Constructor. More...
 

Private Attributes

unsigned int index
 

Friends

std::ostream & operator<< (std::ostream &out, const JEndOfLine &eol)
 Print end of line. More...
 

Detailed Description

Auxiliary class for end of line.

Definition at line 424 of file JEquationFacet.hh.

Constructor & Destructor Documentation

JLANG::JEndOfLine::JEndOfLine ( )
inline

Default constructor.

Definition at line 429 of file JEquationFacet.hh.

429  :
430  index(0)
431  {}
unsigned int index

Member Function Documentation

const JEndOfLine& JLANG::JEndOfLine::operator() ( const unsigned int  i) const
inline

Constructor.

Parameters
iindex
Returns
this JEndOfLine

Definition at line 440 of file JEquationFacet.hh.

441  {
442  index = i;
443 
444  return *this;
445  }
unsigned int index

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const JEndOfLine eol 
)
friend

Print end of line.

Parameters
outoutput stream
eolend of line
Returns
output stream

Definition at line 455 of file JEquationFacet.hh.

456  {
457  using namespace std;
458 
459  if (has_facet<JEquationFacet>(out.getloc()))
460  out << use_facet<JEquationFacet>(out.getloc()).getPreferredEndOfLine(eol.index);
461  else
462  out << '\n';
463 
464  eol.index = 0;
465 
466  return out;
467  }
unsigned int index

Member Data Documentation

unsigned int JLANG::JEndOfLine::index
mutableprivate

Definition at line 470 of file JEquationFacet.hh.


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