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
-
BasicBlockArray(BasicBlockArray)
- Create a new array given another array of basic blocks.
-
BasicBlockArray(Vector)
- Create a new array given a Vector of basic blocks.
-
elementAt(int)
- Returns the basic block at ith index.
-
elements()
-
Returns an enumerator for the elements in this array class.
-
getBasicBlocks()
- returns the actual array of basic blocks if user needs it.
-
size()
- returns the size of this array.
BasicBlockArray
public BasicBlockArray(Vector bbs_)
- Create a new array given a Vector of basic blocks.
- Parameters:
- Vector - of basic blocks
- See Also:
- Vector
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
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
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
getBasicBlocks
public BasicBlock[] getBasicBlocks()
- returns the actual array of basic blocks if user needs it.
- Returns:
- array of basic blocks
- See Also:
- BasicBlock
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