public abstract class CNode extends Object
Constructor and Description |
---|
CNode() |
Modifier and Type | Method and Description |
---|---|
abstract String |
codegen(boolean sparse,
SpoofCompiler.GeneratorAPI api) |
String |
createVarname() |
boolean |
equals(Object that) |
String |
getClassname() |
Types.DataType |
getDataType() |
long |
getID() |
ArrayList<CNode> |
getInput() |
long |
getNumCols() |
long |
getNumRows() |
CNode |
getOutput() |
String |
getVarname() |
String |
getVarname(SpoofCompiler.GeneratorAPI api) |
String |
getVectorLength(SpoofCompiler.GeneratorAPI api) |
int |
hashCode() |
boolean |
isGenerated() |
boolean |
isLiteral() |
abstract boolean |
isSupported(SpoofCompiler.GeneratorAPI api) |
boolean |
isVisited() |
void |
resetGenerated() |
void |
resetHash() |
void |
resetVisitStatus() |
void |
setDataType(Types.DataType dt) |
void |
setLiteral(boolean literal) |
void |
setNumCols(long cols) |
void |
setNumRows(long rows) |
void |
setOutput(CNode output) |
abstract void |
setOutputDims() |
void |
setVarName(String name) |
void |
setVisited() |
void |
setVisited(boolean flag) |
public long getID()
public boolean isGenerated()
public void resetGenerated()
public String createVarname()
public String getVarname()
public String getVarname(SpoofCompiler.GeneratorAPI api)
public String getVectorLength(SpoofCompiler.GeneratorAPI api)
public String getClassname()
public void resetHash()
public void setNumRows(long rows)
public long getNumRows()
public void setNumCols(long cols)
public long getNumCols()
public Types.DataType getDataType()
public void setDataType(Types.DataType dt)
public boolean isLiteral()
public void setLiteral(boolean literal)
public CNode getOutput()
public void setOutput(CNode output)
public boolean isVisited()
public void setVisited()
public void setVisited(boolean flag)
public void resetVisitStatus()
public abstract String codegen(boolean sparse, SpoofCompiler.GeneratorAPI api)
public abstract void setOutputDims()
public abstract boolean isSupported(SpoofCompiler.GeneratorAPI api)
public void setVarName(String name)
Copyright © 2021 The Apache Software Foundation. All rights reserved.