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

337  :
338  WIDTH(width)
339  {
340  this->fill = fill;
341  }
int width
Definition: JManip.hh:256
WIDTH(const int width)
Constructor.
Definition: JManip.hh:236
char fill
Definition: JManip.hh:358

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

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

Member Data Documentation

char FILL::fill

Definition at line 358 of file JManip.hh.

int WIDTH::width
inherited

Definition at line 256 of file JManip.hh.


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