Jpp
Public Member Functions | Public Attributes | Friends | List of all members
LEFT Struct Reference

Auxiliary data structure for alignment of data. More...

#include <JPrint.hh>

Inheritance diagram for LEFT:
WIDTH

Public Member Functions

 LEFT (const int width)
 Constructor. More...
 

Public Attributes

int width
 

Friends

std::ostream & operator<< (std::ostream &out, const LEFT &format)
 Format specifier. More...
 

Detailed Description

Auxiliary data structure for alignment of data.

Definition at line 299 of file JPrint.hh.

Constructor & Destructor Documentation

◆ LEFT()

LEFT::LEFT ( const int  width)
inline

Constructor.

Parameters
widthwidth

Definition at line 307 of file JPrint.hh.

307  :
308  WIDTH(width)
309  {}

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const LEFT format 
)
friend

Format specifier.

Parameters
outoutput stream
formatformat
Returns
output stream

Definition at line 318 of file JPrint.hh.

319  {
320  using namespace std;
321 
322  return out << setw(format.width) << left;
323  }

Member Data Documentation

◆ width

int WIDTH::width
inherited

Definition at line 292 of file JPrint.hh.


The documentation for this struct was generated from the following file:
WIDTH::WIDTH
WIDTH(const int width)
Constructor.
Definition: JPrint.hh:273
std
Definition: jaanetDictionary.h:36
WIDTH::width
int width
Definition: JPrint.hh:292