SymbolicConstantSymbol Class Referencea Symbol of class SYMBOLIC_CONSTANT_CLASS
More...
#include <SymbolicConstantSymbol.h>
Inheritance diagram for SymbolicConstantSymbol:
[legend]List of all members.
Detailed Description
a Symbol of class SYMBOLIC_CONSTANT_CLASS
Polaris C++ VDL - See also:
- Symbol.h
Symbol.h
SymbolicConstantSymbol.h
Symbol.cc
A SymbolicConstantSymbol is a Symbol representing a Fortran symbolic constant (i.e. a constant defined in a PARAMETER statement).
The additional fields it adds to Symbol's fields are the type and expr fields.
The type field indicates the type of variable.
The expr field is an Expression which gives the symbolic value of the SymbolicConstantSymbol
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 44 of file SymbolicConstantSymbol.h.
Constructor & Destructor Documentation
| SymbolicConstantSymbol::SymbolicConstantSymbol |
( |
const char * |
name, |
|
|
Expression * |
expr |
|
) |
[inline] |
|
|
|
... Since _expr "lives" in the SymbolicConstantSymbol (it's not a ... pointer to an Expression somewhere else), it must be deleted.
Definition at line 2579 of file Symbol.cc.
References _expr. |
Member Function Documentation
| Symbol * SymbolicConstantSymbol::clone |
( |
|
) |
const [virtual] |
|
| Symbol * SymbolicConstantSymbol::clone_all |
( |
|
) |
const [virtual] |
|
| const Type & SymbolicConstantSymbol::type |
( |
|
) |
const [virtual] |
|
|
|
Note that you can check the type for this class but not change it, since the type depends directly on the expression field.
Reimplemented from Symbol.
Definition at line 2591 of file Symbol.cc.
References _expr, and _type. |
| const Expression * SymbolicConstantSymbol::expr_ref |
( |
|
) |
const [virtual] |
|
| Expression * SymbolicConstantSymbol::expr_ref |
( |
|
) |
[virtual] |
|
| void SymbolicConstantSymbol::expr |
( |
Expression * |
e |
) |
[virtual] |
|
| void SymbolicConstantSymbol::print |
( |
ostream & |
o |
) |
const [virtual] |
|
|
|
Print onto stream 'o'.
... the _type field
... the _expr field
... the _overflow field
Implements Symbol.
Definition at line 2643 of file Symbol.cc.
References _expr, and _type. |
| virtual void SymbolicConstantSymbol::fill_in |
( |
const BinRep & |
binstr, |
|
|
ExprTable & |
exprs, |
|
|
const Dictionary< VoidPtrDef > & |
stmts, |
|
|
const Dictionary< VoidPtrDef > & |
commons, |
|
|
const Dictionary< VoidPtrDef > & |
equivalences |
|
) |
[virtual] |
|
|
|
Fill in all relevant info from a binstr object.
Implements Symbol. |
| int SymbolicConstantSymbol::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 2795 of file Symbol.cc.
References _expr. |
| void SymbolicConstantSymbol::exchange_convert |
( |
VDL & |
vdl |
) |
[virtual] |
|
| void SymbolicConstantSymbol::relink_dptrs |
( |
ProgramUnit & |
p |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|