Jpp  17.1.1
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
FILL Struct Reference

Auxiliary data structure for sequence of same character. More...

#include <JManip.hh>

Inheritance diagram for FILL:
WIDTH

Public Member Functions

 FILL (const int width=0, const char fill= ' ')
 Constructor. More...
 

Public Attributes

char fill
 
int width
 

Friends

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

Detailed Description

Auxiliary data structure for sequence of same character.

Definition at line 328 of file JManip.hh.

Constructor & Destructor Documentation

FILL::FILL ( const int  width = 0,
const char  fill = ' ' 
)
inline

Constructor.

Parameters
widthwidth
fillfill character

Definition at line 337 of file JManip.hh.

338  :
339  WIDTH(width)
340  {
341  this->fill = fill;
342  }
int width
Definition: JManip.hh:257
WIDTH(const int width)
Constructor.
Definition: JManip.hh:237
char fill
Definition: JManip.hh:359

Friends And Related Function Documentation

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

Format specifier.

Parameters
outoutput stream
formatformat
Returns
output stream

Definition at line 352 of file JManip.hh.

353  {
354  using namespace std;
355 
356  return out << setfill(format.fill) << setw(format.width);
357  }
int width
Definition: JManip.hh:257
char fill
Definition: JManip.hh:359

Member Data Documentation

char FILL::fill

Definition at line 359 of file JManip.hh.

int WIDTH::width
inherited

Definition at line 257 of file JManip.hh.


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