Keeps track of indentation level.
More...
#include <thorin/util/print.h>
Keeps track of indentation level.
Definition at line 184 of file print.h.
◆ Tab()
thorin::Tab::Tab |
( |
std::string_view |
tab = {" "} , |
|
|
size_t |
indent = 0 |
|
) |
| |
|
inline |
◆ indent()
size_t thorin::Tab::indent |
( |
| ) |
const |
|
inline |
◆ lnprint()
template<class... Args>
std::ostream & thorin::Tab::lnprint |
( |
std::ostream & |
os, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ operator+()
Tab thorin::Tab::operator+ |
( |
size_t |
indent | ) |
const |
|
inline |
◆ operator++() [1/2]
Tab & thorin::Tab::operator++ |
( |
| ) |
|
|
inline |
◆ operator++() [2/2]
Tab thorin::Tab::operator++ |
( |
int |
| ) |
|
|
inline |
◆ operator+=()
Tab & thorin::Tab::operator+= |
( |
size_t |
indent | ) |
|
|
inline |
◆ operator-()
Tab thorin::Tab::operator- |
( |
size_t |
indent | ) |
const |
|
inline |
◆ operator--() [1/2]
Tab & thorin::Tab::operator-- |
( |
| ) |
|
|
inline |
◆ operator--() [2/2]
Tab thorin::Tab::operator-- |
( |
int |
| ) |
|
|
inline |
◆ operator-=()
Tab & thorin::Tab::operator-= |
( |
size_t |
indent | ) |
|
|
inline |
◆ operator=() [1/2]
Tab & thorin::Tab::operator= |
( |
size_t |
indent | ) |
|
|
inline |
◆ operator=() [2/2]
Tab & thorin::Tab::operator= |
( |
std::string_view |
tab | ) |
|
|
inline |
◆ print()
template<class... Args>
std::ostream & thorin::Tab::print |
( |
std::ostream & |
os, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ println()
template<class... Args>
std::ostream & thorin::Tab::println |
( |
std::ostream & |
os, |
|
|
const char * |
s, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
◆ tab()
std::string_view thorin::Tab::tab |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: