at.dms.kjc.iterator
Class SIRPipelineIter

java.lang.Object
  extended by at.dms.kjc.iterator.SIRIterator
      extended by at.dms.kjc.iterator.SIRPipelineIter
All Implemented Interfaces:
Iterator, IteratorBase, PipelineIter

public class SIRPipelineIter
extends SIRIterator
implements PipelineIter

IterFactory uses this for SIRPipeline. Includes extra methods as appropriate.


Field Summary
 
Fields inherited from class at.dms.kjc.iterator.SIRIterator
factory
 
Method Summary
 void accept(StreamVisitor v)
           
 SIRIterator get(int n)
          The same as with a different signature.
 Iterator getChild(int n)
          Returns an Iterator to a particular child of this pipeline.
 int getNumChildren()
          Returns the number of children this pipeline has.
 SIRStream getStream()
          Return the stream pointed to by this.
 Iterator getUnspecializedIter()
          This function is needed by the scheduler, but isn't useful from the compiler.
 PipelineIter isPipeline()
          Checks if the iterator points to a Pipeline.
 
Methods inherited from class at.dms.kjc.iterator.SIRIterator
checkValidity, equals, getObject, getParent, getParents, getPos, getRelativeName, hashCode, invalidateNode, invalidateTree, isFeedbackLoop, isFilter, isSplitJoin
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface streamit.scheduler2.iriter.IteratorBase
equals, getObject, hashCode
 

Method Detail

isPipeline

public PipelineIter isPipeline()
Description copied from interface: Iterator
Checks if the iterator points to a Pipeline. If so, returns a Pipeline iterator that points to the same object. If not, returns null.

Specified by:
isPipeline in interface Iterator
Overrides:
isPipeline in class SIRIterator
Returns:
iterator to a Pipeline or null if self doesn't point to a Pipeline

getStream

public SIRStream getStream()
Return the stream pointed to by this.

Specified by:
getStream in class SIRIterator

getNumChildren

public int getNumChildren()
Description copied from interface: PipelineIter
Returns the number of children this pipeline has.

Specified by:
getNumChildren in interface PipelineIter
Returns:
number of children

getChild

public Iterator getChild(int n)
Description copied from interface: PipelineIter
Returns an Iterator to a particular child of this pipeline.

Specified by:
getChild in interface PipelineIter
Returns:
a child

get

public SIRIterator get(int n)
The same as with a different signature.


accept

public void accept(StreamVisitor v)
Specified by:
accept in class SIRIterator

getUnspecializedIter

public Iterator getUnspecializedIter()
This function is needed by the scheduler, but isn't useful from the compiler.

Specified by:
getUnspecializedIter in interface PipelineIter
Returns:
an Iterator that points to the same object