Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
RIGHT Struct Reference

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

#include <JPrint.hh>

Inheritance diagram for RIGHT:
WIDTH

Public Member Functions

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

Public Attributes

int width
 

Friends

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

Detailed Description

Auxiliary data structure for alignment of data.

Definition at line 311 of file JPrint.hh.

Constructor & Destructor Documentation

RIGHT::RIGHT ( const int  width)
inline

Constructor.

Parameters
widthwidth

Definition at line 319 of file JPrint.hh.

319  :
320  WIDTH(width)
321  {}
int width
Definition: JPrint.hh:273
WIDTH(const int width)
Constructor.
Definition: JPrint.hh:254

Friends And Related Function Documentation

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

Format specifier.

Parameters
outoutput stream
formatformat
Returns
output stream

Definition at line 330 of file JPrint.hh.

331  {
332  using namespace std;
333 
334  return out << setw(format.width) << right;
335  }

Member Data Documentation

int WIDTH::width
inherited

Definition at line 273 of file JPrint.hh.


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