|
OpenASIP 2.2
|
#include <NullGlobalScope.hh>


Public Member Functions | |
| virtual | ~NullGlobalScope () |
Public Member Functions inherited from TTAProgram::GlobalScope | |
| GlobalScope () | |
| virtual | ~GlobalScope () |
| virtual bool | isGlobal () const |
| int | globalCodeLabelCount (Address address) const |
| const CodeLabel & | globalCodeLabel (Address address, int index) const |
| int | globalCodeLabelCount () const |
| const CodeLabel & | globalCodeLabel (int index) const |
| int | globalDataLabelCount (Address address) const |
| const DataLabel & | globalDataLabel (Address address, int index) const |
| int | globalDataLabelCount () const |
| const DataLabel & | globalDataLabel (int index) const |
| virtual void | removeCodeLabels (InstructionAddress address) |
| virtual Scope * | copy () const |
| virtual Scope * | copyAndRelocate (const TTAProgram::Program &program) const |
| virtual void | setDataLabelAddressSpace (const TTAMachine::AddressSpace &space) |
Public Member Functions inherited from TTAProgram::Scope | |
| Scope () | |
| virtual | ~Scope () |
| virtual bool | isUnit () const |
| virtual bool | isProcedure () const |
| virtual bool | isLocal () const |
| bool | containsCodeLabel (const std::string &name) const |
| bool | containsDataLabel (const std::string &name) const |
| const CodeLabel & | codeLabel (const std::string &name) const |
| const DataLabel & | dataLabel (const std::string &name) const |
| int | codeLabelCount (Address address) const |
| const CodeLabel & | codeLabel (Address address, int index) const |
| int | dataLabelCount (Address address) const |
| const DataLabel & | dataLabel (Address address, int index) const |
| virtual void | addCodeLabel (const CodeLabel *codeLabel) |
| virtual void | addDataLabel (const DataLabel *dataLabel) |
Static Public Member Functions | |
| static NullGlobalScope & | instance () |
Protected Member Functions | |
| NullGlobalScope () | |
Protected Member Functions inherited from TTAProgram::GlobalScope | |
| virtual void | addGlobalCodeLabel (const CodeLabel &codeLabel, const Scope &owner) |
| virtual void | addGlobalDataLabel (const DataLabel &codeLabel, const Scope &owner) |
Protected Member Functions inherited from TTAProgram::Scope | |
| Scope & | parent () const |
| void | setParent (Scope &scope) |
| int | childCount () const |
| void | addChild (const Scope &scope) |
| const Scope & | child (int index) const |
Private Member Functions | |
| NullGlobalScope (const NullGlobalScope &) | |
| Copying not allowed. | |
| NullGlobalScope & | operator= (const NullGlobalScope &) |
| Assignment not allowed. | |
Static Private Attributes | |
| static NullGlobalScope | instance_ |
| Unique instance of NullGlobalScope. | |
Additional Inherited Members | |
Protected Types inherited from TTAProgram::Scope | |
| typedef std::vector< const Scope * > | ScopeList |
| List for child scopes. | |
| typedef std::vector< const DataLabel * > | DataLabelList |
| List of data labels. | |
| typedef std::vector< const CodeLabel * > | CodeLabelList |
| List of code labels. | |
Protected Attributes inherited from TTAProgram::Scope | |
| ScopeList | children_ |
| Child scopes. | |
| DataLabelList | dataLabels_ |
| Data labels contained by this scope. | |
| CodeLabelList | codeLabels_ |
| Code labels contained by this scope. | |
A singleton class that represents a null global scope.
Definition at line 43 of file NullGlobalScope.hh.
|
virtual |
|
protected |
|
private |
Copying not allowed.
|
static |
Returns an instance of NullGlobalScope class (singleton).
Definition at line 64 of file NullGlobalScope.cc.
References instance_.
Referenced by TTAProgram::NullProgram::globalScope(), and TTAProgram::NullProgram::globalScopeConst().
|
private |
Assignment not allowed.
|
staticprivate |
Unique instance of NullGlobalScope.
Definition at line 58 of file NullGlobalScope.hh.
Referenced by instance().