#include <dist_tree.h>
Collaboration diagram for dist_tree< A >:

Public Member Functions | |
| ~dist_tree () | |
| Destructor. | |
| const node< A > * | get_local_root () const |
| const node< int > * | get_global_root () const |
| const node< int > * | get_global_node () const |
| int | get_proc_parent () const |
| int | get_proc_leftchild () const |
| int | get_proc_rightchild () const |
| bool | write_to_file (const char *filename) const |
| Output the tree into a data file. | |
| void | print () const |
| Simple Print function. | |
| void | setroot (const A &val) |
Static Public Member Functions | |
| static dist_tree< A > * | read_from_file (const char *filename) |
| Construct a tree from a data file. | |
Friends | |
| class | tree_skeletons |
Definition at line 24 of file dist_tree.h.
|
|||||||||
|
Destructor.
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
Simple Print function. This function is only for debugging, because the order of output is not guaranteed. |
|
||||||||||
|
Construct a tree from a data file. The file format of the distributed tree is as follows.
|
|
||||||||||
|
|
|
||||||||||
|
Output the tree into a data file. About the output format, please refer the explanation of readFromFile function.
|
|
|||||
|
Definition at line 26 of file dist_tree.h. |
1.4.4