All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BIT.highBIT.BasicBlockArray

java.lang.Object
   |
   +----BIT.highBIT.BasicBlockArray

public class BasicBlockArray
extends Object
Represents an array to hold basic blocks. The reason for creating this class to represent basic blocks array is that we want to hide as much as we can about the implementation to the user. Also, walking through an array should be faster than walking through a Vector.

See Also:
BasicBlock

Constructor Index

 o BasicBlockArray(BasicBlockArray)
Create a new array given another array of basic blocks.
 o BasicBlockArray(Vector)
Create a new array given a Vector of basic blocks.

Method Index

 o elementAt(int)
Returns the basic block at ith index.
 o elements()
Returns an enumerator for the elements in this array class.
 o getBasicBlocks()
returns the actual array of basic blocks if user needs it.
 o size()
returns the size of this array.

Constructors

 o BasicBlockArray
 public BasicBlockArray(Vector bbs_)
Create a new array given a Vector of basic blocks.

Parameters:
Vector - of basic blocks
See Also:
Vector
 o BasicBlockArray
 public BasicBlockArray(BasicBlockArray bbs_)
Create a new array given another array of basic blocks. Instead of copying the references, it clones them, so actual objects are copied.

Parameters:
an - array to be copied from

Methods

 o elements
 public final synchronized Enumeration elements()
Returns an enumerator for the elements in this array class.

Returns:
new enumeration for the elements in this array
See Also:
Enumeration
 o elementAt
 public BasicBlock elementAt(int i)
Returns the basic block at ith index.

Parameters:
index - of the wanted basic block
Returns:
the basic block at that index
See Also:
BasicBlock
 o getBasicBlocks
 public BasicBlock[] getBasicBlocks()
returns the actual array of basic blocks if user needs it.

Returns:
array of basic blocks
See Also:
BasicBlock
 o size
 public int size()
returns the size of this array.

Returns:
an integer representing the size of this array.

All Packages  Class Hierarchy  This Package  Previous  Next  Index