|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.SIROperator
at.dms.kjc.sir.SIRStream
at.dms.kjc.sir.SIRContainer
public abstract class SIRContainer
This represents a 1-to-1 stream that can contain other streams as a hierarchical unit.
Field Summary |
---|
Fields inherited from class at.dms.kjc.sir.SIRStream |
---|
fields, ident, init, methods, work |
Constructor Summary | |
---|---|
protected |
SIRContainer()
|
protected |
SIRContainer(SIRContainer parent,
String ident,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods)
|
Method Summary | |
---|---|
void |
add(int index,
SIRStream str)
Adds |
void |
add(int index,
SIRStream str,
List param)
Adds str at index index with parameters param, and sets parent of str to this. |
void |
add(SIRStream str)
Add a |
void |
add(SIRStream str,
List param)
Adds |
void |
clear()
Clears the child/param lists. |
boolean |
contains(SIROperator str)
Whether or not |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(SIRContainer other)
Clones all fields of this into |
static void |
destroy()
|
SIRStream |
get(int i)
Returns the i'th child of this. |
List<SIROperator> |
getChildren()
Returns a list of the children of this (does not return the internal representation list of this.) The children are stream objects that are contained within this. |
List |
getParams()
Returns copy of list of parameters passed to children of this. |
List |
getParams(int i)
Returns a list of the parameters (JExpressions) that are being passed to the i'th child of this, or null if the parameters have not been resolved yet. |
SIROperator |
getSuccessor(SIRStream child)
Returns the successor of child. |
abstract List<SIROperator[]> |
getTapePairs()
Returns a list of tuples (two-element arrays) of SIROperators, representing a tape from the first element of each tuple to the second. |
int |
indexOf(SIRStream str)
Returns the index of |
static SIRPipeline |
makeWrapper(SIRStream str)
Returns a wrapper for str. |
protected ConstList |
myChildren()
So subclasses can view children. |
protected ConstList |
myParams()
So subclasses can view parameter list. |
void |
reclaimChildren()
Resets all children of this to have this as their parent, and calls reclaimChildren on all children that are containers. |
void |
remove(int i)
Removes the i'th child of this. |
void |
remove(SIRStream str)
Removes |
abstract void |
replace(SIRStream oldStr,
SIRStream newStr)
Replaces |
void |
set(int index,
SIRStream str)
Set child at index |
void |
setParams(int index,
List params)
Set parameters for 'th child to |
int |
size()
Returns number of child streams of this. |
Methods inherited from class at.dms.kjc.sir.SIRStream |
---|
addField, addField, addFields, addFields, addMethod, addMethods, addReplacementMethod, deepCloneInto, getFields, getIdent, getInit, getInputType, getMethods, getOutputType, getPopForSchedule, getPushForSchedule, getStreamType, getStreamWithNumber, getTypeNameInC, getWork, hasMethod, insideFeedbackLoop, makeEmptyInit, makeEmptyInitWork, makeEmptyWork, needsInit, needsWork, setFields, setIdent, setInit, setInitWithoutReplacement, setMethods, setWork, toString |
Methods inherited from class at.dms.kjc.sir.SIROperator |
---|
accept, assertMutable, deepCloneInto, getAncestors, getName, getNumber, getParent, getParents, getParentStructureAccess, getRelativeName, getShortIdent, hashCode, readResolve, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SIRContainer()
protected SIRContainer(SIRContainer parent, String ident, JFieldDeclaration[] fields, JMethodDeclaration[] methods)
Method Detail |
---|
public static void destroy()
public List<SIROperator> getChildren()
public List getParams()
getParams
in class SIRStream
protected ConstList myParams()
public int indexOf(SIRStream str)
public void clear()
protected ConstList myChildren()
public void add(SIRStream str)
public void add(int index, SIRStream str)
public void add(SIRStream str, List param)
public void add(int index, SIRStream str, List param)
public SIRStream get(int i)
public void reclaimChildren()
public SIROperator getSuccessor(SIRStream child)
SIRNavigationUtils.getSuccessorOper(SIRStream)
.
public void remove(int i)
public void remove(SIRStream str)
public void set(int index, SIRStream str)
public void setParams(int index, List params)
public List getParams(int i)
public int size()
public abstract List<SIROperator[]> getTapePairs()
public abstract void replace(SIRStream oldStr, SIRStream newStr)
public boolean contains(SIROperator str)
public static SIRPipeline makeWrapper(SIRStream str)
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class SIRStream
protected void deepCloneInto(SIRContainer other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |