Jpp  15.0.5
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
WIDTH Struct Reference

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

#include <JManip.hh>

Inheritance diagram for WIDTH:
CENTER CENTER::JCenter FILL FIXED LEFT RIGHT SCIENTIFIC

Public Member Functions

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

Public Attributes

int width
 

Friends

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

Detailed Description

Auxiliary data structure for alignment of data.

Definition at line 231 of file JManip.hh.

Constructor & Destructor Documentation

WIDTH::WIDTH ( const int  width)
inline

Constructor.

Parameters
widthwidth

Definition at line 237 of file JManip.hh.

238  {
239  this->width = width;
240  }
int width
Definition: JManip.hh:257

Friends And Related Function Documentation

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

Format specifier.

Parameters
outoutput stream
formatformat
Returns
output stream

Definition at line 250 of file JManip.hh.

251  {
252  using namespace std;
253 
254  return out << setw(format.width);
255  }
int width
Definition: JManip.hh:257

Member Data Documentation

int WIDTH::width

Definition at line 257 of file JManip.hh.


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