FE 0.6.0
A header-only C++ library for writing frontends
|
Keeps track of indentation level during output. More...
#include <fe/format.h>
Public Member Functions | |
Tab (const Tab &)=default | |
Tab (std::string_view tab={"\t"}, size_t indent=0) | |
Getters | |
size_t | indent () const |
std::string_view | tab () const |
Setters | |
Tab & | operator= (size_t indent) |
Tab & | operator= (std::string tab) |
Indent/Dedent | |
Tab & | operator++ () |
Tab & | operator-- () |
Tab & | operator+= (size_t indent) |
Tab & | operator-= (size_t indent) |
Tab | operator++ (int) |
Tab | operator-- (int) |
Tab | operator+ (size_t indent) const |
Tab | operator- (size_t indent) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, Tab tab) |
|
default |
|
inline |
|
inline |
Definition at line 62 of file format.h.
Referenced by operator+(), operator+=(), operator-(), operator-=(), and operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 63 of file format.h.
Referenced by operator=().
|
friend |