|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.cluster.TapeBase
at.dms.kjc.cluster.TapeCluster
public class TapeCluster
Janis' code for cluster edges pulled out
| Field Summary | |
|---|---|
protected String |
consumer_name
|
protected String |
pop_buffer
name of pop buffer |
protected String |
pop_index
a variable name for a tape offset (downstream) |
protected String |
producer_name
|
protected String |
push_buffer
name of push buffer |
protected String |
push_index
a variable name for a tape offset (upstream) |
protected String |
tapeName
|
| Fields inherited from class at.dms.kjc.cluster.TapeBase |
|---|
dst, peek_name, pop_name, push_name, src, type, typeString |
| Method Summary | |
|---|---|
String |
assignPeekToVar(String varName,
String offset)
Assign the result of peeking. |
String |
assignPopToVar(String varName)
Statement, but no ";" to pop an item into a variable. |
protected void |
createPushRoutineBody(StringBuffer s,
String dataName)
|
String |
dataDeclaration()
Data declaration: in .c file if needed else noop. |
String |
dataDeclarationH()
Data declaration: in .h file if needed else noop. |
String |
downstreamCleanup()
Any cleanup needed before exit for downstream end of tape. |
String |
downstreamDeclaration()
Data declaration: for code doing downstream processing. |
String |
downstreamDeclarationExtern()
Data declaration: following "extern" if needed else noop. |
String |
getConsumerName()
Consumer name for init code in ClusterCodeGeneration. |
String |
getProducerName()
Consumer name for init code in ClusterCodeGeneration. |
String |
peekPrefix()
prefix to peek expression |
String |
peekSuffix()
suffix to peek expression |
String |
popExpr()
expression to pop an item: to end of statement. |
String |
popExprCleanup()
if expression to pop an item requires statements to clean up then this is cleanup. |
String |
popExprNoCleanup()
expression to pop an item, really an expression. |
String |
popManyItems(String destBuffer,
int destOffset,
int numItems)
|
String |
popNStmt(int N)
prefix to pop N items discarding them. |
String |
pushbackCleanup()
|
String |
pushbackInit(int numberToPushBack)
|
String |
pushbackPrefix()
|
String |
pushbackSuffix()
|
String |
pushManyItems(String sourceBuffer,
int sourceOffset,
int numItems)
|
String |
pushPrefix()
prefix before data expression to push. |
String |
pushSuffix()
suffix after data expression to push. |
String |
topOfWorkIteration()
Code used at top of work iteration. |
String |
upstreamCleanup()
Any cleanup needed before exit for upstream end of tape. |
String |
upstreamDeclaration()
Data declaration: for code doing upstream processing. |
String |
upstreamDeclarationExtern()
Data declaration: following "extern" if needed else noop. |
| Methods inherited from class at.dms.kjc.cluster.TapeBase |
|---|
getDest, getPeekName, getPopName, getPushName, getSource, getType, newTape |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface at.dms.kjc.cluster.Tape |
|---|
getDest, getPeekName, getPopName, getPushName, getSource, getType |
| Field Detail |
|---|
protected final String pop_buffer
protected final String push_buffer
protected final String pop_index
protected final String push_index
protected final String producer_name
protected final String consumer_name
protected String tapeName
| Method Detail |
|---|
public String getConsumerName()
public String getProducerName()
public String dataDeclarationH()
Tape
dataDeclarationH in interface TapedataDeclarationH in class TapeBasepublic String dataDeclaration()
Tape
dataDeclaration in interface TapedataDeclaration in class TapeBasepublic String downstreamDeclarationExtern()
Tape
downstreamDeclarationExtern in interface TapedownstreamDeclarationExtern in class TapeBasepublic String downstreamDeclaration()
Tape
downstreamDeclaration in interface TapedownstreamDeclaration in class TapeBase
public String pushManyItems(String sourceBuffer,
int sourceOffset,
int numItems)
pushManyItems in interface TapepushManyItems in class TapeBase
public String popManyItems(String destBuffer,
int destOffset,
int numItems)
popManyItems in interface TapepopManyItems in class TapeBasepublic String upstreamDeclarationExtern()
Tape
upstreamDeclarationExtern in interface TapeupstreamDeclarationExtern in class TapeBasepublic String upstreamDeclaration()
Tape
upstreamDeclaration in interface TapeupstreamDeclaration in class TapeBase
protected void createPushRoutineBody(StringBuffer s,
String dataName)
public String topOfWorkIteration()
Tape
topOfWorkIteration in interface TapetopOfWorkIteration in class TapeBasepublic String upstreamCleanup()
Tape
upstreamCleanup in interface TapeupstreamCleanup in class TapeBasepublic String downstreamCleanup()
Tape
downstreamCleanup in interface TapedownstreamCleanup in class TapeBasepublic String pushPrefix()
Tape
pushPrefix in interface TapepushPrefix in class TapeBasepublic String pushSuffix()
Tape
pushSuffix in interface TapepushSuffix in class TapeBasepublic String popExpr()
Tape
popExpr in interface TapepopExpr in class TapeBasepublic String popExprNoCleanup()
Tape
popExprNoCleanup in interface TapepopExprNoCleanup in class TapeBasepublic String popExprCleanup()
Tape
popExprCleanup in interface TapepopExprCleanup in class TapeBasepublic String popNStmt(int N)
Tape
popNStmt in interface TapepopNStmt in class TapeBasepublic String peekPrefix()
Tape
peekPrefix in interface TapepeekPrefix in class TapeBasepublic String peekSuffix()
Tape
peekSuffix in interface TapepeekSuffix in class TapeBasepublic String pushbackInit(int numberToPushBack)
pushbackInit in interface TapepushbackInit in class TapeBasepublic String pushbackPrefix()
pushbackPrefix in interface TapepushbackPrefix in class TapeBasepublic String pushbackSuffix()
pushbackSuffix in interface TapepushbackSuffix in class TapeBasepublic String pushbackCleanup()
pushbackCleanup in interface TapepushbackCleanup in class TapeBasepublic String assignPopToVar(String varName)
Tape
assignPopToVar in interface TapeassignPopToVar in class TapeBase
public String assignPeekToVar(String varName,
String offset)
Tape
assignPeekToVar in interface TapeassignPeekToVar in class TapeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||