cfront::ValueNode Class Reference

#include <ValueNode.hpp>

Inheritance diagram for cfront::ValueNode:

Inheritance graph
[legend]
Collaboration diagram for cfront::ValueNode:

Collaboration graph
[legend]

Public Member Functions

 ValueNode (const ValueNode &other)
 ValueNode ()
virtual ~ValueNode ()
Value getValue () const
void setValue (Value &value)
ValuegetValueRef ()
void addOptLocation (const RefValueNode &other)
virtual void initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt)
virtual void initialize (ANTLR_USE_NAMESPACE(antlr) RefToken t)
virtual void initialize (RefValueNode ast)
virtual ANTLR_USE_NAMESPACE (antlr) RefAST clone()

Static Public Member Functions

static ANTLR_USE_NAMESPACE (antlr) RefAST factory()

Protected Attributes

Value value_

Detailed Description

ANTLR custom node class to hold the values for analysis.

Definition at line 94 of file ValueNode.hpp.


Constructor & Destructor Documentation

cfront::ValueNode::ValueNode ( const ValueNode other  )  [inline]

The copy constructor

Definition at line 98 of file ValueNode.hpp.

cfront::ValueNode::ValueNode (  )  [inline]

The default constructor

Definition at line 102 of file ValueNode.hpp.

References cfront::NameDescription::SS_NONE.

virtual cfront::ValueNode::~ValueNode (  )  [inline, virtual]

Definition at line 107 of file ValueNode.hpp.


Member Function Documentation

Value cfront::ValueNode::getValue (  )  const [inline]

Definition at line 109 of file ValueNode.hpp.

void cfront::ValueNode::setValue ( Value value  )  [inline]

Definition at line 114 of file ValueNode.hpp.

Value& cfront::ValueNode::getValueRef (  )  [inline]

Definition at line 119 of file ValueNode.hpp.

void cfront::ValueNode::addOptLocation ( const RefValueNode &  other  )  [inline]

Definition at line 123 of file ValueNode.hpp.

References cfront::LocationNode::addOptLocation().

virtual void cfront::ValueNode::initialize ( int  t,
const ANTLR_USE_NAMESPACE(std) string &  txt 
) [inline, virtual]

Reimplemented from cfront::LocationNode.

Definition at line 128 of file ValueNode.hpp.

References cfront::LocationNode::initialize(), and cfront::NameDescription::SS_NONE.

virtual void cfront::ValueNode::initialize ( ANTLR_USE_NAMESPACE(antlr) RefToken  t  )  [inline, virtual]

Reimplemented from cfront::LocationNode.

Definition at line 134 of file ValueNode.hpp.

References cfront::LocationNode::initialize(), and cfront::NameDescription::SS_NONE.

virtual void cfront::ValueNode::initialize ( RefValueNode  ast  )  [inline, virtual]

Definition at line 140 of file ValueNode.hpp.

References cfront::LocationNode::initialize().

virtual cfront::ValueNode::ANTLR_USE_NAMESPACE ( antlr   )  [inline, virtual]

Provide a clone of the node (no sibling/child pointers are copied)

Reimplemented from cfront::LocationNode.

Definition at line 147 of file ValueNode.hpp.

References cfront::ANTLR_USE_NAMESPACE().

static cfront::ValueNode::ANTLR_USE_NAMESPACE ( antlr   )  [inline, static, virtual]

Provide a clone of the node (no sibling/child pointers are copied).

Reimplemented from cfront::LocationNode.

Definition at line 151 of file ValueNode.hpp.

References cfront::ANTLR_USE_NAMESPACE().


Field Documentation

Definition at line 157 of file ValueNode.hpp.


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

Generated on Tue Mar 31 20:19:53 2009 for ctrump by  doxygen 1.5.6