#include <Indent.h>

Public Member Functions | |
| Indent (int n=0, int s=2) | |
| Constructor. | |
| Indent (const Indent &o) | |
| Copy constructor. | |
| int | Level () const |
| Get indentation level. | |
| Indent | operator+ (const Indent &indent) const |
| Add two indentations. | |
| Indent & | operator++ () |
| Pre-increment operator. | |
| Indent | operator++ (int) |
| Post-increment operator. | |
| Indent & | operator+= (const Indent &indent) |
| Add indentation to this indentation. | |
| Indent | operator- (const Indent &indent) const |
| Subtract two indentations from another. | |
| Indent & | operator-- () |
| Pre-decrement operator. | |
| Indent | operator-- (int) |
| Post-decrement operator. | |
| Indent & | operator-= (const Indent &indent) |
| Subtract indentation from this indentation. | |
| Indent & | operator= (int n) |
| Assignment operator. | |
| Indent & | operator= (const Indent &indent) |
| Assignment operator. | |
| int | Spaces () const |
| Number of space characters. | |
| void | SpacesPerLevel (int n) |
| Set number of indentation whitespace characters per level. | |
| int | SpacesPerLevel () const |
| Get number of indentation whitespace characters per level. | |
Protected Attributes | |
| int | _N |
| Number of indentation levels. | |
| int | _NumberOfSpaces |
| Number of whitespace characters per indentation level. | |