CommonBlock Class ReferenceFor now, the copy constructor, operator= method, and definition_clone() method don't work because using them would create two common blocks for the same variable, resulting in inconsistencies.
More...
#include <CommonBlock.h>
Inheritance diagram for CommonBlock:
[legend]List of all members.
Detailed Description
For now, the copy constructor, operator= method, and definition_clone() method don't work because using them would create two common blocks for the same variable, resulting in inconsistencies.
currently disabled.
Definition at line 29 of file CommonBlock.h.
Constructor & Destructor Documentation
| CommonBlock::CommonBlock |
( |
const char * |
name |
) |
|
|
| CommonBlock::CommonBlock |
( |
const char * |
name, |
|
|
const BinRep & |
binstr, |
|
|
const Symtab & |
symtab |
|
) |
|
|
|
|
Constructor from binstr Note: The name must begin and end with a slash, e.g.
"/COM1/"
Definition at line 82 of file CommonBlock.cc.
References _body, _overflow, _saved, BinRep::find_ref(), BinRep::ins(), RefList< T >::ins_last(), BinRep::put_set(), register_instance(), BinRep::to_string(), BinRep::to_tuple(), List< T >::valid(), and warn_overflow_map(). |
Member Function Documentation
| const char * CommonBlock::name_ref |
( |
|
) |
const [inline] |
|
| int CommonBlock::saved |
( |
|
) |
const [inline] |
|
| void CommonBlock::saved |
( |
int |
|
) |
[inline] |
|
| BinRep * CommonBlock::overflow_ref |
( |
|
) |
const [inline] |
|
| int CommonBlock::entries |
( |
|
) |
const [inline] |
|
| void CommonBlock::del |
( |
Symbol & |
symbol |
) |
|
|
| void CommonBlock::ins |
( |
Symbol & |
symbol, |
|
|
int |
index |
|
) |
|
|
|
|
Insert a variable into the members list at position 'index' -- this change is also automatically reflected in symbol by making the variable's common field point to this structure.
An index of 0 indicates the first position in the list. If the variable is already in another common block, then an error occurs, since this is likely a mistake.
Definition at line 215 of file CommonBlock.cc.
References Symbol::common(), Symbol::common_ref(), and symbol().
Referenced by move_saved_vars(). |
| void CommonBlock::print |
( |
ostream & |
o |
) |
const [virtual] |
|
| Definition * CommonBlock::definition_clone |
( |
|
) |
const [virtual] |
|
| int CommonBlock::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 281 of file CommonBlock.cc. |
| void CommonBlock::relink_dptrs |
( |
ProgramUnit & |
p |
) |
[virtual] |
|
Friends And Related Function Documentation
| ostream& operator<< |
( |
ostream & |
o, |
|
|
const CommonBlock & |
common |
|
) |
[friend] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|