Jpp
 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 230 of file JManip.hh.

Constructor & Destructor Documentation

WIDTH::WIDTH ( const int  width)
inline

Constructor.

Parameters
widthwidth

Definition at line 236 of file JManip.hh.

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

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 249 of file JManip.hh.

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

Member Data Documentation

int WIDTH::width

Definition at line 256 of file JManip.hh.


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