Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Tree Class Reference

List of all members.

Public Methods

 Tree ()
Collection get (TreeNode n)
TreeNode getRoot ()
String toString ()

Private Methods

void setRoot (TreeNode r)

Private Attributes

TreeNode root

Detailed Description

This class represents a tree.

Definition at line 12 of file Tree.java.


Constructor & Destructor Documentation

Tree::Tree   [inline]
 

Creates a new tree with no nodes.

Definition at line 21 of file Tree.java.


Member Function Documentation

Collection Tree::get TreeNode   n [inline]
 

Gets all the node equal to a given one.

Definition at line 27 of file Tree.java.

TreeNode Tree::getRoot   [inline]
 

Returns the root of the tree.

Definition at line 33 of file Tree.java.

void Tree::setRoot TreeNode   r [inline, private]
 

Sets a new root.

Definition at line 39 of file Tree.java.

Referenced by TreeNode::TreeNode().

String Tree::toString   [inline]
 

Returns a string rapresentation of the tree.

Definition at line 45 of file Tree.java.


Member Data Documentation

TreeNode Tree::root [private]
 

The root of the tree.

Definition at line 16 of file Tree.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:22:35 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001