Tabulation description (API) More...
Public Member Functions | |
Tabulation (const string &s=" ") | |
Tabulation (const Tabulation &tabulation) | |
~Tabulation () | |
Tabulation & | operator= (const Tabulation &tabulation) |
Tabulation & | operator++ () |
Tabulation | operator++ (int) |
Tabulation & | operator-- () |
Tabulation | operator-- (int) |
Tabulation description (API)
This object provides an indentation capability for printing readable texts.
Represents the global tabulation variable usable by all application programmers. The elementary tabulation being fixed to 3 space characters.
Let us write a sample code of printing a succinct cell description :
The call :
Will print the result in the following form :
Of course this automatic indentation works also in recursive mode. Its main interest is for that purpose because you don't need to transfer through recursive function calls an additional argument for controling the indentation when formating print-outs.
Hurricane::Tabulation::Tabulation | ( | const string & | s = " " | ) |
Default constructor : The string <s>
represents the elementary tabulation (fixed by default to 3 space characters)
Hurricane::Tabulation::Tabulation | ( | const Tabulation & | tabulation | ) |
Copy constructor.
Hurricane::Tabulation::~Tabulation | ( | ) |
No description.
Tabulation & Hurricane::Tabulation::operator= | ( | const Tabulation & | tabulation | ) |
Assignment operator.
Tabulation & Hurricane::Tabulation::operator++ | ( | ) |
Incrementation operator : returns the tabulation augmented of an elementary tabulation.
Tabulation Hurricane::Tabulation::operator++ | ( | int | ) |
Postfixed version of the incrementation operator : the tabulation is augmented of an elementary tabulation, but returns the previous tabulation.
Tabulation & Hurricane::Tabulation::operator-- | ( | ) |
Decrementation operator : returns the tabulation reduced of an elementary tabulation.
Tabulation Hurricane::Tabulation::operator-- | ( | int | ) |
Postfixed version of the decrementation operator : the tabulation is reduced of an elementary tabulation, but returns the previous tabulation.
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |