at.dms.kjc.slicegraph
Class OutputContent

java.lang.Object
  extended by at.dms.kjc.slicegraph.FilterContent
      extended by at.dms.kjc.slicegraph.PredefinedContent
          extended by at.dms.kjc.slicegraph.OutputContent
All Implemented Interfaces:
SIRCodeUnit
Direct Known Subclasses:
FileOutputContent

public abstract class OutputContent
extends PredefinedContent

Predefined FilterContent for output. Could be restructured to be interface but it was easier to extend PredefinedContent this way and can hold code common for predefined output.

Author:
jasperln

Field Summary
 
Fields inherited from class at.dms.kjc.slicegraph.FilterContent
initFunction, inputType, my_unique_ID, outputType, prework, steady
 
Constructor Summary
OutputContent(OutputContent content)
          Copy constructor for OutputContent.
OutputContent(SIRPredefinedFilter filter)
          Construct OutputContent from SIRPredefinedFilter
OutputContent(UnflatFilter unflat)
          Construct OutputContent from UnflatFilter.
 
Method Summary
abstract  void createContent()
          Subclasses of PredefinedContent must be able to create their content.
 
Methods inherited from class at.dms.kjc.slicegraph.FilterContent
addAField, addAMethod, addField, addFields, addMethod, addMethods, getArray, getBegin, getConstant, getEnd, getFields, getInit, getInitMult, getInitWork, getInputType, getMethods, getName, getOutputType, getPeek, getPeekInt, getPopCount, getPopInt, getPos, getPrework, getPreworkPeek, getPreworkPop, getPreworkPush, getPushInt, getSteadyList, getSteadyMult, getTotal, getWork, initItemsNeeded, initItemsPushed, isLinear, isTwoStage, multSteadyMult, setArray, setBegin, setEnd, setFields, setInitMult, setMethods, setPos, setPrework, setSteadyMult, setTheMethods, setTotal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputContent

public OutputContent(OutputContent content)
Copy constructor for OutputContent.

Parameters:
content - The OutputContent to copy.

OutputContent

public OutputContent(SIRPredefinedFilter filter)
Construct OutputContent from SIRPredefinedFilter

Parameters:
filter - The SIRPredefinedFilter used to contruct the OutputContent.

OutputContent

public OutputContent(UnflatFilter unflat)
Construct OutputContent from UnflatFilter.

Parameters:
unflat - The UnflatFilter used to contruct the OutputContent.
Method Detail

createContent

public abstract void createContent()
Description copied from class: PredefinedContent
Subclasses of PredefinedContent must be able to create their content. (fields, methods, work function if appropriate, multiplicities, rates)

Specified by:
createContent in class PredefinedContent