FAUST compiler  0.9.9.6b8
Public Member Functions | Private Attributes
Tabber Class Reference

#include <tree.hh>

List of all members.

Public Member Functions

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

Private Attributes

int fIndent
int fPostInc

Detailed Description

Definition at line 248 of file tree.hh.


Constructor & Destructor Documentation

Tabber::Tabber ( int  n = 0) [inline]

Definition at line 253 of file tree.hh.

: fIndent(n), fPostInc(0)   {}

Member Function Documentation

Tabber& Tabber::operator++ ( ) [inline]

Definition at line 254 of file tree.hh.

References fPostInc.

{ fPostInc++; return *this;}
Tabber& Tabber::operator-- ( ) [inline]

Definition at line 255 of file tree.hh.

References fIndent.

{ assert(fIndent > 0); fIndent--; return *this; }
ostream& Tabber::print ( ostream &  fout) [inline]

Definition at line 257 of file tree.hh.

References fIndent, and fPostInc.

Referenced by operator<<().

                        { for (int i=0; i<fIndent; i++) fout << '\t';  fIndent+=fPostInc; fPostInc=0; return fout; }

Here is the caller graph for this function:


Member Data Documentation

int Tabber::fIndent [private]

Definition at line 250 of file tree.hh.

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

int Tabber::fPostInc [private]

Definition at line 251 of file tree.hh.

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


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