|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.slicegraph.Slice
at.dms.kjc.slicegraph.SimpleSlice
public class SimpleSlice
A SimpleSlice is a Slice with exactly one FilterSliceNode
.
Field Summary | |
---|---|
protected FilterSliceNode |
body
|
Fields inherited from class at.dms.kjc.slicegraph.Slice |
---|
filterNodes, head, len, tail |
Constructor Summary | |
---|---|
SimpleSlice(InputSliceNode head)
|
|
SimpleSlice(InputSliceNode head,
FilterSliceNode body,
OutputSliceNode tail)
Constructor: creates a slice with one filter and sets previous parent and next links the supplied InputSliceNode, FilterSliceNode, and OutputSliceNode. |
|
SimpleSlice(SliceNode node)
|
Method Summary | |
---|---|
int |
finish()
Not needed for SimpleSlice, kept as a sanity check. |
FilterSliceNode |
getBody()
Preferred way to access body of a SimpleSlice. |
List<FilterSliceNode> |
getFilterNodes()
For SimpleSlice: call getBody() instead. |
int |
getNumFilters()
Should not need to be called for SimpleSlice: always 1. |
void |
setBody(FilterSliceNode body)
Set the body. |
Methods inherited from class at.dms.kjc.slicegraph.Slice |
---|
getDependencies, getHead, getIdent, getTail, setHead, setTail, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FilterSliceNode body
Constructor Detail |
---|
public SimpleSlice(InputSliceNode head, FilterSliceNode body, OutputSliceNode tail)
head
- InputSliceNode at head of slicebody
- FilterSliceNode in simple slice.tail
- OutputSliceNode at tail of slice.public SimpleSlice(InputSliceNode head)
head
- public SimpleSlice(SliceNode node)
node
- Method Detail |
---|
public int finish()
finish
in class Slice
public int getNumFilters()
getNumFilters
in class Slice
public List<FilterSliceNode> getFilterNodes()
getBody()
instead.
For compatability with Slice, returns a one-element list of
FilterSliceNode.
getFilterNodes
in class Slice
public FilterSliceNode getBody()
public void setBody(FilterSliceNode body)
body
- a FilterSliceNode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |