Jpp  master_rocky-40-g5f0272dcd
the software that should make you happy
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 FIXED

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::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  }
char fill
Definition: JManip.hh:359
int width
Definition: JManip.hh:257
WIDTH(const int width)
Constructor.
Definition: JManip.hh:237

Friends And Related Function Documentation

◆ operator<<

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  }
Definition: JSTDTypes.hh:14

Member Data Documentation

◆ fill

char FILL::fill

Definition at line 359 of file JManip.hh.

◆ width

int WIDTH::width
inherited

Definition at line 257 of file JManip.hh.


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