The custom-implemented printer engines for outputting expressions.
More...
|
std::string | ppSubscript (const std::string &base, const std::string &subscript) |
| Pretty print a base expression, (aka, subscript).
|
|
std::string | ppSuperscript (const std::string &base, const std::string &superscript) |
| Pretty print a power expression, (aka, superscript).
|
|
std::string | ppRoot (const std::string &radicand, const std::string &index="2") |
| Pretty print a root expression.
|
|
std::string | ppFraction (const std::string &top, const std::string &bottom, bool inLine=false) |
| Pretty print a fraction.
|
|
The custom-implemented printer engines for outputting expressions.
◆ ppFraction()
std::string steppable::prettyPrint::printers::ppFraction |
( |
const std::string & | top, |
|
|
const std::string & | bottom, |
|
|
bool | inLine = false ) |
Pretty print a fraction.
- Parameters
-
top | The numerator. |
bottom | The denominator. |
inLine | Whether to print in a single line. |
- Returns
- The pretty printed fraction.
◆ ppRoot()
std::string steppable::prettyPrint::printers::ppRoot |
( |
const std::string & | radicand, |
|
|
const std::string & | index = "2" ) |
Pretty print a root expression.
- Parameters
-
radicand | The radicand. |
index | The index. |
- Returns
- The pretty printed root expression.
◆ ppSubscript()
std::string steppable::prettyPrint::printers::ppSubscript |
( |
const std::string & | base, |
|
|
const std::string & | subscript ) |
Pretty print a base expression, (aka, subscript).
- Parameters
-
base | The base. |
subscript | The subscript. |
- Returns
- The pretty printed base expression.
◆ ppSuperscript()
std::string steppable::prettyPrint::printers::ppSuperscript |
( |
const std::string & | base, |
|
|
const std::string & | superscript ) |
Pretty print a power expression, (aka, superscript).
- Parameters
-
base | The base. |
superscript | The exponent. |
- Returns
- The pretty printed power expression.