at.dms.kjc.rstream
Class FFSPeekBuffer

java.lang.Object
  extended by at.dms.kjc.rstream.FusionState
      extended by at.dms.kjc.rstream.FilterFusionState
          extended by at.dms.kjc.rstream.FFSPeekBuffer

Deprecated.

@Deprecated
public class FFSPeekBuffer
extends FilterFusionState

This (used to) implement the filter abstraction by using a separate pop buffer and peek buffer. It would copy the non-pop'ed item from the pop buffer to the push buffer after the filter has fired, before the filter fires, the peek buffer was copied into the pop buffer. But it is no longer maintained.

Author:
Michael Gordon

Field Summary
 
Fields inherited from class at.dms.kjc.rstream.FilterFusionState
dontGeneratePopDecl, filter, FORINDEXNAME, loopCounterVar, POPCOUNTERNAME, popCounterVar, PUSHCOUNTERNAME, pushCounterVar, pushCounterVarInit
 
Fields inherited from class at.dms.kjc.rstream.FusionState
BACKUPCOUNTER, BUFFERNAME, bufferVar, fusionState, myUniqueID, necessary, node, remaining
 
Constructor Summary
protected FFSPeekBuffer(FlatNode fnode)
          Deprecated.  
 
Method Summary
 int getBufferSize(FlatNode prev, boolean init)
          Deprecated. return the incoming buffer size for this filter
 JStatement[] getWork(JBlock enclosingBlock, boolean isInit)
          Deprecated. get the SIR block representing the imperative code necessary to execute this filter in the init stage (*isInit* == true) or the steady-state stage (*isInit* == false)
 void initTasks(Vector<JFieldDeclaration> fields, Vector<JMethodDeclaration> functions, JBlock initFunctionCalls, JBlock main)
          Deprecated. Add any necessary initialization tasks to the SIR code containers
 void sharedBufferVar(JVariableDefinition buf)
          Deprecated. Set the incoming (pop) buffer var of this filter to be *buf*.
 
Methods inherited from class at.dms.kjc.rstream.FilterFusionState
checkHelperFunction, getBufferVar, getFilter, getPopCounterVar, getPushBufferVar, getPushCounterVar, getRemaining
 
Methods inherited from class at.dms.kjc.rstream.FusionState
getFusionState, getNode, intAssignStm, isNecesary, makeBuffer, remainingBackupLoop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FFSPeekBuffer

protected FFSPeekBuffer(FlatNode fnode)
Deprecated. 
Method Detail

getBufferSize

public int getBufferSize(FlatNode prev,
                         boolean init)
Deprecated. 
Description copied from class: FilterFusionState
return the incoming buffer size for this filter

Specified by:
getBufferSize in class FilterFusionState

sharedBufferVar

public void sharedBufferVar(JVariableDefinition buf)
Deprecated. 
Description copied from class: FilterFusionState
Set the incoming (pop) buffer var of this filter to be *buf*. This is called by an unnecesary duplicate splitters to make sure that its downstream neighbors share the same incoming buffer

Overrides:
sharedBufferVar in class FilterFusionState

initTasks

public void initTasks(Vector<JFieldDeclaration> fields,
                      Vector<JMethodDeclaration> functions,
                      JBlock initFunctionCalls,
                      JBlock main)
Deprecated. 
Description copied from class: FilterFusionState
Add any necessary initialization tasks to the SIR code containers

Specified by:
initTasks in class FilterFusionState

getWork

public JStatement[] getWork(JBlock enclosingBlock,
                            boolean isInit)
Deprecated. 
Description copied from class: FilterFusionState
get the SIR block representing the imperative code necessary to execute this filter in the init stage (*isInit* == true) or the steady-state stage (*isInit* == false)

Specified by:
getWork in class FilterFusionState