Namelist Class ReferenceObject which represents the NAMELIST statement.
More...
#include <Namelist.h>
Inheritance diagram for Namelist:
[legend]List of all members.
Detailed Description
Object which represents the NAMELIST statement.
Polaris C++ VDL - See also:
- Namelist.h
Namelist.cc
Namelist is simply the representation of a Fortran Namelist statement which allows a group of named data objects to be referred to by a single name.
Perhaps the destructor for the Namelist class should automatically call del() on each of its members so that the pointers in the Symtab are all set to null when this is deleted.
NamelistDict
Definition at line 48 of file Namelist.h.
Constructor & Destructor Documentation
| Namelist::Namelist |
( |
const char * |
name |
) |
|
|
| Namelist::Namelist |
( |
const char * |
name, |
|
|
const BinRep & |
binstr, |
|
|
const Symtab & |
symtab |
|
) |
|
|
|
|
Constructor from binstr.
... int len = strlen(name);
... Notice that the symbol itself should not be deleted ... if ever this entry is deleted from the _body list
... Here we expect a tuple of variable names
... Notice that the symbol itself should not be deleted ... if ever this entry is deleted from the _body list
... Unrecognized -- add to overflow
Definition at line 67 of file Namelist.cc.
References _body, _iolist, _overflow, BinRep::find_ref(), BinRep::ins(), List< T >::ins_last(), RefList< T >::ins_last(), BinRep::put_set(), register_instance(), BinRep::to_string(), BinRep::to_tuple(), List< T >::valid(), and warn_overflow_map(). |
| Namelist::Namelist |
( |
const Namelist & |
other |
) |
|
|
Member Function Documentation
| const char * Namelist::name_ref |
( |
|
) |
const |
|
| BinRep * Namelist::overflow_ref |
( |
|
) |
const |
|
| int Namelist::entries |
( |
|
) |
const |
|
|
|
Returns a reference to the member list of named data objects in the form of identifier expressions.
Definition at line 285 of file Namelist.cc.
References _iolist. |
| void Namelist::del |
( |
Symbol & |
symbol |
) |
|
|
| void Namelist::ins |
( |
Symbol & |
symbol, |
|
|
int |
index |
|
) |
|
|
| void Namelist::print |
( |
ostream & |
o |
) |
const [virtual] |
|
| Definition * Namelist::definition_clone |
( |
|
) |
const [virtual] |
|
| int Namelist::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.
Implements Definition.
Definition at line 246 of file Namelist.cc. |
| void Namelist::relink_dptrs |
( |
ProgramUnit & |
p |
) |
[virtual] |
|
Friends And Related Function Documentation
| ostream& operator<< |
( |
ostream & |
o, |
|
|
const Namelist & |
namelist |
|
) |
[friend] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|