Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | Friends | List of all members
datatools::io::indenter Class Reference

I/O indenter class. More...

#include <bayeux/datatools/ioutils.h>

Public Member Functions

 indenter ()
 Default constructor. More...
 
size_t get_width () const
 Returns the with of each indentation level. More...
 
size_t get_level () const
 Returns the current level of indentation. More...
 
indenteroperator++ (int)
 Increment indendation level by one unit. More...
 
indenteroperator-- (int)
 Decrement indendation level by one unit. More...
 
std::ostream & operator() (std::ostream &) const
 
indenteroperator() (size_t)
 

Friends

std::ostream & operator<< (std::ostream &, const indenter &)
 

Detailed Description

I/O indenter class.

Constructor & Destructor Documentation

◆ indenter()

datatools::io::indenter::indenter ( )

Default constructor.

Member Function Documentation

◆ get_level()

size_t datatools::io::indenter::get_level ( ) const

Returns the current level of indentation.

◆ get_width()

size_t datatools::io::indenter::get_width ( ) const

Returns the with of each indentation level.

◆ operator()() [1/2]

std::ostream& datatools::io::indenter::operator() ( std::ostream &  ) const

◆ operator()() [2/2]

indenter& datatools::io::indenter::operator() ( size_t  )

◆ operator++()

indenter& datatools::io::indenter::operator++ ( int  )

Increment indendation level by one unit.

◆ operator--()

indenter& datatools::io::indenter::operator-- ( int  )

Decrement indendation level by one unit.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ,
const indenter  
)
friend

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