Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JEndOfLine Struct Reference

Auxiliary class for end of line. More...

#include <JEquationFacet.hh>

Public Member Functions

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

Private Attributes

unsigned int index
 

Friends

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

Detailed Description

Auxiliary class for end of line.

Definition at line 424 of file JEquationFacet.hh.

Constructor & Destructor Documentation

◆ JEndOfLine()

JLANG::JEndOfLine::JEndOfLine ( )
inline

Default constructor.

Definition at line 429 of file JEquationFacet.hh.

429 :
430 index(0)
431 {}

Member Function Documentation

◆ operator()()

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 }

Friends And Related Symbol Documentation

◆ operator<<

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 }

Member Data Documentation

◆ index

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: