#include <gentree.h>
Public Member Functions | |
| gentree () | |
| gentree (const string &name) | |
| int | read (istream &ins) |
| ~gentree () | |
| void | showPreorder () |
| void | showPostorder () |
| void | showLevelorder () |
| void | showAsTable (ostream &os) const |
| void | showAsObject (ostream &os) const |
Private Attributes | |
| node * | root |
Static Private Attributes | |
| static const int | step = 2 |
| gentree::gentree | ( | ) |
References node< T >::parent, and root.
| gentree::gentree | ( | const string & | name | ) |
References node< T >::parent, and root.
| int gentree::read | ( | istream & | ins | ) |
References node< T >::add_child(), node< T >::add_sibling(), node< T >::child, leadingspace(), node< T >::parent, root, node< T >::sibling, and step.
Referenced by main().
| void gentree::showPreorder | ( | ) | [inline] |
References preorder(), and root.
| void gentree::showPostorder | ( | ) | [inline] |
References postorder(), and root.
| void gentree::showLevelorder | ( | ) | [inline] |
References levelorder(), and root.
| void gentree::showAsTable | ( | ostream & | os | ) | const |
References node< T >::child, node< T >::data, node< T >::parent, Q, root, and node< T >::sibling.
Referenced by main().
| void gentree::showAsObject | ( | ostream & | os | ) | const |
References node< T >::child, node< T >::data, node< T >::parent, Q, root, and node< T >::sibling.
Referenced by main().
node* gentree::root [private] |
Referenced by gentree(), read(), showAsObject(), showAsTable(), showLevelorder(), showPostorder(), showPreorder(), and ~gentree().
const int gentree::step = 2 [static, private] |
Referenced by read().
1.5.6