Logo Search packages:      
Sourcecode: cadabra version File versions

node_printer Class Reference

#include <display.hh>

Inheritance diagram for node_printer:

node_base_printer

List of all members.


Detailed Description

The default printing class for standard text output to the console. Also contains logic for printing in Mathematica and Maple format, to be split off in a separate class hierarchy later.

Definition at line 77 of file display.hh.


Public Types

typedef exptree::iterator iterator
typedef exptree::sibling_iterator sibling_iterator

Public Member Functions

 node_printer (exptree_output &)
virtual void print_infix (std::ostream &, iterator)

Protected Member Functions

bool children_have_brackets (iterator) const
void print_children (std::ostream &, exptree::iterator, int skip=0)
void print_closing_bracket (std::ostream &, str_node::bracket_t, str_node::parent_rel_t)
void print_multiplier (std::ostream &, exptree::iterator)
void print_opening_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)
std::string texify (const std::string &) const

Protected Attributes

str_node::bracket_t current_bracket_
str_node::parent_rel_t current_parent_rel_
bool isdelta
bool isweyl
exptree_output & parent
str_node::bracket_t previous_bracket_
str_node::parent_rel_t previous_parent_rel_
const exptree & tr

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

Generated by  Doxygen 1.6.0   Back to index