Template Function ADS::to_list(const Tree<T> *)

Function Documentation

template<class T>
std::string ADS::to_list(const Tree<T> *t)

the parenthesized list of t, ( r T1 … Tk ) for the root r with the subtrees T1 , … , Tk, e.g., ( a ( b ( e ) ( f ) ) ( c ( g ) ) ); the values are written with << and must contain no space nor parenthesis

Pre:

t is a node