Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Public Attributes

char fill
 
int width
 

Friends

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

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

Friends And Related Symbol 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 }

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: