OpenASIP
2.0
|
#include <ConstantNode.hh>
Public Member Functions | |
ConstantNode (long value) | |
ConstantNode (const ConstantNode &other) | |
virtual | ~ConstantNode () |
virtual GraphNode * | clone () const |
virtual long | value () const |
virtual std::string | toString () const |
![]() | |
virtual | ~OperationDAGNode () |
![]() | |
GraphNode (int nodeID) | |
GraphNode () | |
virtual | ~GraphNode () |
int | nodeID () const |
virtual std::string | dotString () const |
Private Attributes | |
long | value_ |
Constant input (not listed in IOs) node of the operation DAG.
Definition at line 43 of file ConstantNode.hh.
ConstantNode::ConstantNode | ( | long | value | ) |
ConstantNode::ConstantNode | ( | const ConstantNode & | other | ) |
|
inlinevirtual |
Definition at line 50 of file ConstantNode.hh.
|
virtual |
Clones node. Needed for dynamic binding, when copying instances through the base class.
Reimplemented from GraphNode.
Definition at line 55 of file ConstantNode.cc.
References ConstantNode().
|
virtual |
Returns a node description as a string.
Used for printing graph into .dot file. This is used for a label in the default dotString() implementation.
Reimplemented from GraphNode.
Definition at line 65 of file ConstantNode.cc.
References Conversion::toString(), and value_.
Referenced by OperationDAGConverter::writeNode().
|
virtual |
Definition at line 60 of file ConstantNode.cc.
References value_.
Referenced by FUGen::constantName(), TDGen::constantNodeString(), and OperationDAGBehavior::OperationDAGBehavior().
|
private |
Definition at line 59 of file ConstantNode.hh.
Referenced by toString(), and value().