SyTen

◆ print()

template<typename T >
void syten::T3N::Tree::Node< T >::print ( std::ostream out,
Index  level_,
std::string  location,
int const  maximum = -1 
)
inline

Printing helper.

Passes number of levels from ptr on.

Parameters
outoutput stream
level_current nesting level
maximumnumber of levels that should be printed, if maximum < 0 will print the entire tree
locationposition string of the current node

References std::endl(), std::left(), syten::T3N::Tree::Node< T >::legNumber(), syten::T3N::Tree::Node< T >::Legs, syten::T3N::Tree::Node< T >::ndt, std::right(), syten::T3N::Tree::Node< T >::rt, syten::T3N::Tree::Node< T >::st, std::to_string(), and syten::T3N::Tree::Node< T >::v.

+ Here is the call graph for this function: