byucc.jhdl.synth
Class BlockIterator

java.lang.Object
  extended bybyucc.jhdl.synth.graph.SubsetIterator
      extended bybyucc.jhdl.synth.BlockIterator
All Implemented Interfaces:
GenericIterator

public class BlockIterator
extends SubsetIterator

A class to allow iteration over the vertices in a ControlFlowGraph which are blocks, (as opposed to decisions).


Field Summary
 
Fields inherited from class byucc.jhdl.synth.graph.SubsetIterator
iterator, selector
 
Constructor Summary
BlockIterator(ControlFlowGraph graph)
          Create a new BlockIterator to iterate over the block vertices in the given ControlFlowGraph.
 
Method Summary
 CFVertex getBlock()
          Return the current block.
 
Methods inherited from class byucc.jhdl.synth.graph.SubsetIterator
deleteElt, first, getElt, isValid, last, moveTo, next, prev
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockIterator

public BlockIterator(ControlFlowGraph graph)
Create a new BlockIterator to iterate over the block vertices in the given ControlFlowGraph.

Parameters:
graph - A ControlFlowGraph with block vertices of interest.
Method Detail

getBlock

public CFVertex getBlock()
Return the current block. This is a convenience method which hides a cast.

Returns:
the current element cast as a CFVertex.


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.