All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class epp.TreeVec

java.lang.Object
   |
   +----epp.TreeVec

public class TreeVec
extends Object
The TreeVec class is a class of a variable length array containg class Tree elements.

A typical usage is shown below.

	TreeVec tvec = new TreeVec();
	while (...) {
	  tvec.add(tree);
	}
	Tree[] treeArray = tvec.toArray()

See Also:
Tree

Constructor Index

 o TreeVec()

Method Index

 o add(Tree)
Adds a Tree to TreeVec.
 o addA(Tree[])
Adds contents of an array of Tree to TreeVec.
 o addA(TreeVec)
Adds contents of another TreeVec to TreeVec.
 o toArray()
Converts TreeVec into an array of Tree.

Constructors

 o TreeVec
 public TreeVec()

Methods

 o add
 public TreeVec add(Tree t)
Adds a Tree to TreeVec.

 o addA
 public TreeVec addA(TreeVec tvec)
Adds contents of another TreeVec to TreeVec.

 o addA
 public TreeVec addA(Tree trees[])
Adds contents of an array of Tree to TreeVec.

 o toArray
 public Tree[] toArray()
Converts TreeVec into an array of Tree.


All Packages  Class Hierarchy  This Package  Previous  Next  Index