#include <nodes.h>
Public Member Functions | |
StageNodeNode (int opCode_, const std::string &value="") | |
Constructor. | |
std::ostream & | put (std::ostream &s) const |
SyntaxNode * | clone () |
Creates a copy of the node, reusing the pointer in the current node. | |
SyntaxNode * | deep_copy () |
Creates a deep copy of the nodes: SyntaxNodes pointed to are recreated as well. | |
void | setValue (const std::string &value) |
Static Public Attributes | |
static std::string | node = "" |
Current replacement string for the 'node' keyword. | |
static std::string | stage = "" |
Current replacement string for the 'stage' keyword. | |
Private Attributes | |
std::string | value_ |
StageNodeNode::StageNodeNode | ( | int | opCode_, | |
const std::string & | value = "" | |||
) | [inline] |
Constructor.
Referenced by clone().
SyntaxNode* StageNodeNode::clone | ( | ) | [inline, virtual] |
Creates a copy of the node, reusing the pointer in the current node.
Reimplemented from SyntaxNode.
References SyntaxNode::opCode, StageNodeNode(), and value_.
Referenced by deep_copy().
SyntaxNode* StageNodeNode::deep_copy | ( | ) | [inline, virtual] |
Creates a deep copy of the nodes: SyntaxNodes pointed to are recreated as well.
Non-SyntaxNode objects pointed to are not recreated, here just pointers are copied (->ref in the case of a SyntaxNodeIDREF object). The int/double entries pointed to by INT_VAL/FLOAT_VAL SyntaxNodes *are* recreated.
Reimplemented from SyntaxNode.
References clone().
ostream & StageNodeNode::put | ( | std::ostream & | s | ) | const [virtual] |
Reimplemented from SyntaxNode.
References node, NODE, SyntaxNode::opCode, stage, STAGE, and value_.
void StageNodeNode::setValue | ( | const std::string & | value | ) | [inline] |
References value_.
string StageNodeNode::node = "" [static] |
Current replacement string for the 'node' keyword.
Referenced by StochModel::_transcribeComponents(), put(), and StochModelComp::transcribeToModelComp().
string StageNodeNode::stage = "" [static] |
Current replacement string for the 'stage' keyword.
Referenced by StochModel::_transcribeComponents(), put(), and StochModelComp::transcribeToModelComp().
std::string StageNodeNode::value_ [private] |
Referenced by clone(), put(), and setValue().