FAUST compiler  0.9.9.6b8
Public Member Functions | Private Attributes | List of all members
Tabber Class Reference

#include <tree.hh>

Public Member Functions

 Tabber (int n=0)
 
Tabberoperator++ ()
 
Tabberoperator-- ()
 
ostream & print (ostream &fout)
 

Private Attributes

int fIndent
 
int fPostInc
 

Detailed Description

Definition at line 250 of file tree.hh.

Constructor & Destructor Documentation

Tabber::Tabber ( int  n = 0)
inline

Definition at line 255 of file tree.hh.

255 : fIndent(n), fPostInc(0) {}
int fPostInc
Definition: tree.hh:253
int fIndent
Definition: tree.hh:252

Member Function Documentation

Tabber& Tabber::operator++ ( )
inline

Definition at line 256 of file tree.hh.

References fPostInc.

256 { fPostInc++; return *this;}
int fPostInc
Definition: tree.hh:253
Tabber& Tabber::operator-- ( )
inline

Definition at line 257 of file tree.hh.

References fIndent.

257 { assert(fIndent > 0); fIndent--; return *this; }
int fIndent
Definition: tree.hh:252
ostream& Tabber::print ( ostream &  fout)
inline

Definition at line 259 of file tree.hh.

References fIndent, and fPostInc.

Referenced by operator<<().

260  { for (int i=0; i<fIndent; i++) fout << '\t'; fIndent+=fPostInc; fPostInc=0; return fout; }
int fPostInc
Definition: tree.hh:253
int fIndent
Definition: tree.hh:252

Here is the caller graph for this function:

Member Data Documentation

int Tabber::fIndent
private

Definition at line 252 of file tree.hh.

Referenced by operator--(), and print().

int Tabber::fPostInc
private

Definition at line 253 of file tree.hh.

Referenced by operator++(), and print().


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