|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tape
Common elements for all kinds of tapes.
A tape represents the queue of data between
two processing nodes. It has a source (processing
node), a destination (processing node), it carries
items of a particular type. The source end can
push items at the front of the tape. The destination
end can peek for items on the tape, pop items from
the tape (and in the odd case of enqueues push items
onto the tape).
Based on Janis' idea of mostly generating strings
rather than attempting to hack up IR code and use
existing compiler routines to eventually generate
the strings.
Note to self, known implemenations:
cluster nodes using sockets,
cluster nodes using cluster fusion,
cluster standalone buffers (copy down),
cluster standalone buffers (wrap),
cluster standalone dynamic rate edges.
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. |
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. |
int |
getDest()
Destination of tape. |
String |
getPeekName()
name of routine to peek an item from the tape, or in case of an array, the address of an item... |
String |
getPopName()
name of routine to pop an item from the tape, or in case of an array, the address of an item... |
String |
getPushName()
name of routine to push an item onto the tape. |
int |
getSource()
Source of tape. |
CType |
getType()
Get type of objects communicated over the tape |
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 NumberToPush)
|
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. |
Method Detail |
---|
int getSource()
int getDest()
CType getType()
String getPushName()
String getPopName()
String getPeekName()
String dataDeclarationH()
String dataDeclaration()
String downstreamDeclarationExtern()
String downstreamDeclaration()
String upstreamDeclarationExtern()
String upstreamDeclaration()
String topOfWorkIteration()
String upstreamCleanup()
String downstreamCleanup()
String pushPrefix()
String pushSuffix()
String pushManyItems(String sourceBuffer, int sourceOffset, int numItems)
String popManyItems(String destBuffer, int destOffset, int numItems)
String assignPopToVar(String varName)
String popExpr()
String popExprNoCleanup()
String popExprCleanup()
String popNStmt(int n)
String assignPeekToVar(String varName, String offset)
varName
- offset
-
String peekPrefix()
String peekSuffix()
String pushbackInit(int NumberToPush)
String pushbackPrefix()
String pushbackSuffix()
String pushbackCleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |