at.dms.kjc.slicegraph
Class PredefinedContent

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

public abstract class PredefinedContent
extends FilterContent

Predefined FilterContent. This is for filters that represent built-in functionality like FileReaders and FileWriters. Could be restructured to be interface but it was easier to extend FilterContent this way and can hold code common for predefined filters.

Author:
jasperln

Field Summary
 
Fields inherited from class at.dms.kjc.slicegraph.FilterContent
initFunction, inputType, my_unique_ID, outputType, prework, steady
 
Constructor Summary
PredefinedContent(PredefinedContent content)
          Copy constructor for PredefinedContent.
PredefinedContent(SIRPredefinedFilter filter)
          Construct PredefinedContent from SIRPredefinedFilter
PredefinedContent(UnflatFilter unflat)
          Construct PredefinedContent 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

PredefinedContent

public PredefinedContent(PredefinedContent content)
Copy constructor for PredefinedContent.

Parameters:
content - The PredefinedContent to copy.

PredefinedContent

public PredefinedContent(SIRPredefinedFilter filter)
Construct PredefinedContent from SIRPredefinedFilter

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

PredefinedContent

public PredefinedContent(UnflatFilter unflat)
Construct PredefinedContent from UnflatFilter.

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

createContent

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