Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tree_util.h File Reference

The Header of namespace tree_util. More...

#include "node.h"
#include "tree_util.tpp"

Include dependency graph for tree_util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tree_util

Functions

template<typename A>
node< A > * tree_util::read_tree_from_file (const char *filename)
 Read a non-distributed tree from a file.
template<typename A>
node< A > * tree_util::construct_tree_from_array (const int *flags, const A *values)
 Construct a non-distributed tree from serialized arrays.
template<typename A>
void tree_util::free_all_tree (node< A > *root)
 Free all the node recursively.
template<typename A>
bool tree_util::check_perfect_binary_tree (const node< A > *tree)
 Check the input tree is a perfect binary tree.
template<typename A>
bool tree_util::dist_and_write_to_file (const node< A > *tree, const int nprocs, const char *filename)
 Distribute and write the distributed tree to file.
template<typename A>
bool tree_util::write_to_file (const node< A > *tree, const char *filename)
 Write a tree to file as it is.
template<typename A>
int tree_util::get_size_rec (const node< A > *tree)
 Compute the size of tree.


Detailed Description

The Header of namespace tree_util.

Author:
Kiminori MATSUZAKI

Definition in file tree_util.h.


Generated on Wed Jan 18 22:19:58 2006 for SkeTo -- Skeleton Library in Tokyo by  doxygen 1.4.4