at.dms.kjc.rstream
Class FileReader

java.lang.Object
  extended by at.dms.kjc.sir.SIROperator
      extended by at.dms.kjc.sir.SIRStream
          extended by at.dms.kjc.sir.SIRPhasedFilter
              extended by at.dms.kjc.sir.SIRFilter
                  extended by at.dms.kjc.rstream.FileReader
All Implemented Interfaces:
DeepCloneable, Finalizable, SIRCodeUnit, Serializable, Cloneable

public class FileReader
extends SIRFilter

A file reader class that implements a file reader as a normal (non-predefined) filter in the SIR graph. The filter calls fopen in its init function and then fscanf in its work function. This can be fused by the partitioner.

Author:
Michael Gordon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class at.dms.kjc.sir.SIRStream
fields, ident, init, methods, work
 
Constructor Summary
FileReader(SIRFileReader sirFR)
          Returns the fully constructed FileReader based on *sirFR*
 
Method Summary
 
Methods inherited from class at.dms.kjc.sir.SIRFilter
accept, deepClone, deepCloneInto, getPeek, getPeekInt, getPeekString, getPop, getPopForSchedule, getPopInt, getPopString, getPush, getPushForSchedule, getPushInt, getPushString, getWork, makeIdentityFilter, setPeek, setPeek, setPhases, setPop, setPop, setPush, setPush, setWork, toString
 
Methods inherited from class at.dms.kjc.sir.SIRPhasedFilter
copyState, deepCloneInto, getInitPhases, getInputType, getOutputType, getPhases, getStreamType, setInitPhases, setInputType, setOutputType
 
Methods inherited from class at.dms.kjc.sir.SIRStream
addField, addField, addFields, addFields, addMethod, addMethods, addReplacementMethod, deepCloneInto, getFields, getIdent, getInit, getMethods, getParams, getStreamWithNumber, getTypeNameInC, hasMethod, insideFeedbackLoop, makeEmptyInit, makeEmptyInitWork, makeEmptyWork, needsInit, needsWork, setFields, setIdent, setInit, setInitWithoutReplacement, setMethods
 
Methods inherited from class at.dms.kjc.sir.SIROperator
assertMutable, deepCloneInto, getAncestors, getName, getNumber, getParent, getParents, getParentStructureAccess, getRelativeName, getShortIdent, hashCode, readResolve, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileReader

public FileReader(SIRFileReader sirFR)
Returns the fully constructed FileReader based on *sirFR*

Parameters:
sirFR - The SIRFileReader we are replacing