Jpp  17.3.1
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 415 of file JEquationFacet.hh.

Constructor & Destructor Documentation

JLANG::JEndOfLine::JEndOfLine ( )
inline

Default constructor.

Definition at line 420 of file JEquationFacet.hh.

420  :
421  index(0)
422  {}
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 431 of file JEquationFacet.hh.

432  {
433  index = i;
434 
435  return *this;
436  }
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 446 of file JEquationFacet.hh.

447  {
448  using namespace std;
449 
450  if (has_facet<JEquationFacet>(out.getloc()))
451  out << use_facet<JEquationFacet>(out.getloc()).getPreferredEndOfLine(eol.index);
452  else
453  out << '\n';
454 
455  eol.index = 0;
456 
457  return out;
458  }
unsigned int index

Member Data Documentation

unsigned int JLANG::JEndOfLine::index
mutableprivate

Definition at line 461 of file JEquationFacet.hh.


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