OpenASIP
2.0
|
#include <NullGlobalScope.hh>
Public Member Functions | |
virtual | ~NullGlobalScope () |
![]() | |
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) |
![]() | |
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 () | |
![]() | |
virtual void | addGlobalCodeLabel (const CodeLabel &codeLabel, const Scope &owner) |
virtual void | addGlobalDataLabel (const DataLabel &codeLabel, const Scope &owner) |
![]() | |
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. More... | |
NullGlobalScope & | operator= (const NullGlobalScope &) |
Assignment not allowed. More... | |
Static Private Attributes | |
static NullGlobalScope | instance_ |
Unique instance of NullGlobalScope. More... | |
Additional Inherited Members | |
![]() | |
typedef std::vector< const Scope * > | ScopeList |
List for child scopes. More... | |
typedef std::vector< const DataLabel * > | DataLabelList |
List of data labels. More... | |
typedef std::vector< const CodeLabel * > | CodeLabelList |
List of code labels. More... | |
![]() | |
ScopeList | children_ |
Child scopes. More... | |
DataLabelList | dataLabels_ |
Data labels contained by this scope. More... | |
CodeLabelList | codeLabels_ |
Code labels contained by this scope. More... | |
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().