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