cfront::LocationNode Class Reference

#include <LocationNode.hpp>

Inheritance diagram for cfront::LocationNode:

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

Collaboration graph
[legend]

Public Types

typedef std::vector< LocationLocations

Public Member Functions

 LocationNode (const LocationNode &other)
 LocationNode ()
virtual ~LocationNode ()
const LocationgetLocation () const
const LocationsgetOptLocations () const
void setLocation (const Location &loc)
void addOptLocation (const Location &loc)
void addOptLocation (const RefLocationNode &other)
void setLocation (RefLocationNode 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 (RefLocationNode ast)
virtual ANTLR_USE_NAMESPACE (antlr) RefAST clone()
virtual ANTLR_USE_NAMESPACE (std) string toStringList() const

Static Public Member Functions

static ANTLR_USE_NAMESPACE (antlr) RefAST factory()

Protected Attributes

Location location_
Locations optLoc_

Detailed Description

ANTLR custom AST node class to hold the location information.

Definition at line 64 of file LocationNode.hpp.


Member Typedef Documentation

Definition at line 67 of file LocationNode.hpp.


Constructor & Destructor Documentation

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

The copy constructor.

Definition at line 70 of file LocationNode.hpp.

cfront::LocationNode::LocationNode (  )  [inline]

The default constructor.

Definition at line 74 of file LocationNode.hpp.

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

Definition at line 75 of file LocationNode.hpp.


Member Function Documentation

const Location& cfront::LocationNode::getLocation (  )  const [inline]

Definition at line 77 of file LocationNode.hpp.

const Locations& cfront::LocationNode::getOptLocations (  )  const [inline]

Definition at line 82 of file LocationNode.hpp.

void cfront::LocationNode::setLocation ( const Location loc  )  [inline]

Definition at line 87 of file LocationNode.hpp.

void cfront::LocationNode::addOptLocation ( const Location loc  )  [inline]

Definition at line 92 of file LocationNode.hpp.

Referenced by cfront::ValueNode::addOptLocation().

void cfront::LocationNode::addOptLocation ( const RefLocationNode &  other  )  [inline]

Definition at line 97 of file LocationNode.hpp.

void cfront::LocationNode::setLocation ( RefLocationNode  other  )  [inline]

Definition at line 102 of file LocationNode.hpp.

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

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

Reimplemented in cfront::ScopeNode, and cfront::ValueNode.

Definition at line 118 of file LocationNode.hpp.

References CommonAST::initialize().

virtual void cfront::LocationNode::initialize ( RefLocationNode  ast  )  [inline, virtual]

Definition at line 125 of file LocationNode.hpp.

References cfront::ANTLR_USE_NAMESPACE(), and CommonAST::initialize().

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

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

Reimplemented in cfront::ScopeNode, cfront::ScopeNode, cfront::ValueNode, and cfront::ValueNode.

Definition at line 132 of file LocationNode.hpp.

References cfront::ANTLR_USE_NAMESPACE().

static cfront::LocationNode::ANTLR_USE_NAMESPACE ( antlr   )  [inline, static]

virtual cfront::LocationNode::ANTLR_USE_NAMESPACE ( std   )  const [inline, virtual]

Definition at line 141 of file LocationNode.hpp.


Field Documentation

Definition at line 155 of file LocationNode.hpp.

Definition at line 156 of file LocationNode.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