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 330 of file JPrint.hh.

Constructor & Destructor Documentation

RIGHT::RIGHT ( const int  width)
inline

Constructor.

Parameters
widthwidth

Definition at line 338 of file JPrint.hh.

338  :
339  WIDTH(width)
340  {}
int width
Definition: JPrint.hh:292
WIDTH(const int width)
Constructor.
Definition: JPrint.hh:273

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 349 of file JPrint.hh.

350  {
351  using namespace std;
352 
353  return out << setw(format.width) << right;
354  }

Member Data Documentation

int WIDTH::width
inherited

Definition at line 292 of file JPrint.hh.


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