Public Member Functions | Protected Attributes | List of all members
mirtk::Indent Class Reference

#include <Indent.h>

Collaboration diagram for mirtk::Indent:
Collaboration graph

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.
 
Indentoperator++ ()
 Pre-increment operator.
 
Indent operator++ (int)
 Post-increment operator.
 
Indentoperator+= (const Indent &indent)
 Add indentation to this indentation.
 
Indent operator- (const Indent &indent) const
 Subtract two indentations from another.
 
Indentoperator-- ()
 Pre-decrement operator.
 
Indent operator-- (int)
 Post-decrement operator.
 
Indentoperator-= (const Indent &indent)
 Subtract indentation from this indentation.
 
Indentoperator= (int n)
 Assignment operator.
 
Indentoperator= (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.
 

Detailed Description

Auxiliary class for output indentation.

Definition at line 32 of file Indent.h.


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