Public Member Functions | Static Public Attributes | Private Attributes

StageNodeNode Class Reference

#include <nodes.h>

Inheritance diagram for StageNodeNode:
SyntaxNode

List of all members.

Public Member Functions

 StageNodeNode (int opCode_, const std::string &value="")
 Constructor.
std::ostream & put (std::ostream &s) const
SyntaxNodeclone ()
 Creates a copy of the node, reusing the pointer in the current node.
SyntaxNodedeep_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_

Constructor & Destructor Documentation

StageNodeNode::StageNodeNode ( int  opCode_,
const std::string &  value = "" 
) [inline]

Constructor.

Referenced by clone().


Member Function Documentation

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_.


Member Data Documentation

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().


The documentation for this class was generated from the following files: