#include <DisplayTerminal.hh>
|
| virtual void | dispatch (std::ostream &, Ex::iterator) override |
| |
| virtual bool | needs_brackets (Ex::iterator it) override |
| | Determine if a node needs extra brackets around it. More...
|
| |
|
| void | print_multiplier (std::ostream &, Ex::iterator, int mult=1) |
| |
| void | print_opening_bracket (std::ostream &, str_node::bracket_t, str_node::parent_rel_t) |
| |
| void | print_closing_bracket (std::ostream &, str_node::bracket_t, str_node::parent_rel_t) |
| |
| void | print_parent_rel (std::ostream &, str_node::parent_rel_t, bool first) |
| |
| void | print_children (std::ostream &, Ex::iterator, int skip=0) |
| |
| void | print_productlike (std::ostream &, Ex::iterator, const std::string &inbetween) |
| | Printing members for various standard constructions, e.g. More...
|
| |
| void | print_sumlike (std::ostream &, Ex::iterator) |
| |
| void | print_fraclike (std::ostream &, Ex::iterator) |
| |
| void | print_commalike (std::ostream &, Ex::iterator) |
| |
| void | print_arrowlike (std::ostream &, Ex::iterator) |
| |
| void | print_powlike (std::ostream &, Ex::iterator) |
| |
| void | print_intlike (std::ostream &, Ex::iterator) |
| |
| void | print_equalitylike (std::ostream &, Ex::iterator) |
| |
| void | print_commutator (std::ostream &str, Ex::iterator it, bool comm) |
| |
| void | print_components (std::ostream &, Ex::iterator) |
| |
| void | print_other (std::ostream &, Ex::iterator) |
| |
| bool | children_have_brackets (Ex::iterator ch) const |
| |
| DisplayTerminal::DisplayTerminal |
( |
const Kernel & |
k, |
|
|
const Ex & |
e |
|
) |
| |
| bool DisplayTerminal::children_have_brackets |
( |
Ex::iterator |
ch | ) |
const |
|
private |
| void DisplayTerminal::dispatch |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
overrideprotectedvirtual |
| bool DisplayTerminal::needs_brackets |
( |
Ex::iterator |
it | ) |
|
|
overrideprotectedvirtual |
Determine if a node needs extra brackets around it.
Uses context from the parent node if necessary. Has to be implemented in a derived class, because the answer depends on the printing method (e.g. (a+b)/c needs brackets when printed like this, but does not need brackets when printed as {a+b}{c}).
Implements cadabra::DisplayBase.
| void DisplayTerminal::print_arrowlike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_children |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it, |
|
|
int |
skip = 0 |
|
) |
| |
|
private |
| void DisplayTerminal::print_commalike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_commutator |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it, |
|
|
bool |
comm |
|
) |
| |
|
private |
| void DisplayTerminal::print_components |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_equalitylike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_fraclike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_intlike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_multiplier |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it, |
|
|
int |
mult = 1 |
|
) |
| |
|
private |
| void DisplayTerminal::print_other |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_powlike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| void DisplayTerminal::print_productlike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it, |
|
|
const std::string & |
inbetween |
|
) |
| |
|
private |
Printing members for various standard constructions, e.g.
print as a list, or as a decorated symbol with super/subscripts etc. The names reflect the structure of the output, not necessarily the meaning or name of the object that is being printed.
| void DisplayTerminal::print_sumlike |
( |
std::ostream & |
str, |
|
|
Ex::iterator |
it |
|
) |
| |
|
private |
| int cadabra::DisplayTerminal::bracket_level =0 |
|
private |
| std::map<std::string, std::string> cadabra::DisplayTerminal::symmap |
|
private |
The documentation for this class was generated from the following files: