1 2 #include "DisplayBase.hh" 3 4 using namespace cadabra; 5 DisplayBase(const Kernel & k,const Ex & e)6DisplayBase::DisplayBase(const Kernel& k, const Ex& e) 7 : tree(e), kernel(k) 8 { 9 } 10 output(std::ostream & str)11void DisplayBase::output(std::ostream& str) 12 { 13 Ex::iterator it=tree.begin(); 14 if(it==tree.end()) return; 15 16 output(str, it); 17 } 18 output(std::ostream & str,Ex::iterator it)19void DisplayBase::output(std::ostream& str, Ex::iterator it) 20 { 21 dispatch(str, it); 22 } 23 24