Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

defNode Class Reference

Definition. More...

#include <ast.h>

Inheritance diagram for defNode::

Node declNode procNode subdeclNode List of all members.

Public Methods

 defNode (NodeType typ, const Coord coord)
 Create a definition node. More...

virtual ~defNode ()
 Destroy a defNode. More...

Accessors
Methods to get and set fields in the class.

text_listpragmas ()

Private Attributes

text_list _pragmas
 Pragmas. More...


Detailed Description

Definition.

This class provides a base class for procNode and declNode, which are the two kinds of external definitions in a translation unit.

The NodeType is determined by the subclass (either Proc or Decl).


Constructor & Destructor Documentation

defNode::defNode NodeType    typ,
const Coord    coord
 

Create a definition node.

Parameters:
typ  the node type (always either Decl or Proc).
coord  the location of the construct in the source file.

defNode::~defNode   [virtual]
 

Destroy a defNode.

Warning:
Do not use the destructors to delete AST nodes. Instead, rely on the node garbage collector.


Member Function Documentation

text_list& defNode::pragmas   [inline]
 


Member Data Documentation

text_list defNode::_pragmas [private]
 

Pragmas.

This list will contain any pragmas that precede the given defNode. During parsing, they are collected into the CBZ::pragmas list and then placed here in the defNode constructor.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 12:06:27 2002 for C-Breeze by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001