ProgramSymbol Class Referencea Symbol of class PROGRAM_CLASS
More...
#include <ProgramSymbol.h>
Inheritance diagram for ProgramSymbol:
[legend]List of all members.
Detailed Description
a Symbol of class PROGRAM_CLASS
Polaris C++ VDL - See also:
- Symbol.h
Symbol.h
ProgramSymbol.h
Symbol.cc
A ProgramSymbol is a Symbol representing the identifier for a program unit which begins with the Fortran keyword PROGRAM
The only additional field it adds to Symbol's fields is the entry field, a pointer to the entry statement for this Symbol.
The only virtual methods inherited from Symbol which are valid for this class (which will not give errors messages, with the exception of Symbol::is_array()) are those which are explicitly overridden here.
See Symbol for more information.
Definition at line 40 of file ProgramSymbol.h.
Constructor & Destructor Documentation
| ProgramSymbol::ProgramSymbol |
( |
const char * |
name, |
|
|
Statement * |
entry |
|
) |
[inline] |
|
| ProgramSymbol::ProgramSymbol |
( |
const ProgramSymbol & |
psym |
) |
[inline] |
|
|
|
... nothing to do (_entry should NOT be deleted)
Definition at line 699 of file Symbol.cc. |
Member Function Documentation
| Symbol * ProgramSymbol::clone |
( |
|
) |
const [virtual] |
|
| Symbol * ProgramSymbol::clone_all |
( |
|
) |
const [virtual] |
|
| const Statement * ProgramSymbol::entry_ref |
( |
|
) |
const [virtual] |
|
| Statement * ProgramSymbol::entry_ref |
( |
|
) |
[virtual] |
|
| void ProgramSymbol::entry |
( |
Statement * |
s |
) |
[virtual] |
|
| const Type & ProgramSymbol::type |
( |
|
) |
const [virtual] |
|
|
|
(aborts if called for a symbol that doesn't use a type)
Type t(make_type(VOID_TYPE)); return make_type(VOID_TYPE);
Reimplemented from Symbol.
Definition at line 724 of file Symbol.cc.
References make_type(), and VOID_TYPE. |
| void ProgramSymbol::print |
( |
ostream & |
o |
) |
const [virtual] |
|
|
|
Fill in all relevant info from a binstr object.
Implements Symbol. |
| void ProgramSymbol::exchange_convert |
( |
VDL & |
vdl |
) |
[virtual] |
|
| int ProgramSymbol::structures_OK |
( |
|
) |
const [virtual] |
|
|
|
Check the structure of the data for errors or inconsistency Return 0 and print error message if problems found, otherwise return 1 without message.
Reimplemented from Symbol.
Definition at line 815 of file Symbol.cc.
References _entry. |
| void ProgramSymbol::relink_dptrs |
( |
ProgramUnit & |
p |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|