Ginan
Loading...
Searching...
No Matches
Indentor Struct Reference

Helper object to allow push-pop style indentation in outputs. More...

Detailed Description

Helper object to allow push-pop style indentation in outputs.

Collaboration diagram for Indentor:

Public Member Functions

 Indentor (char c=' ', int width=4)
 
Indentor operator++ (int)
 
Indentoroperator-- ()
 
 operator string () const
 

Data Fields

int indentation = 0
 
int width
 
char indent
 

Friends

std::ostream & operator<< (std::ostream &os, const Indentor &dt)
 

Constructor & Destructor Documentation

◆ Indentor()

Indentor::Indentor ( char c = ' ',
int width = 4 )
inline

Member Function Documentation

◆ operator string()

Indentor::operator string ( ) const
inline

◆ operator++()

Indentor Indentor::operator++ ( int )
inline

◆ operator--()

Indentor & Indentor::operator-- ( )
inline

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Indentor & dt )
friend

Field Documentation

◆ indent

char Indentor::indent

◆ indentation

int Indentor::indentation = 0

◆ width

int Indentor::width

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