OpenASIP
2.0
|
#include <NullAddressSpace.hh>
Public Member Functions | |
virtual int | width () const |
virtual ULongWord | start () const |
virtual ULongWord | end () const |
virtual TCEString | name () const override |
virtual void | setName (const std::string &name) override |
virtual void | setWidth (int width) override |
virtual void | setAddressBounds (ULongWord start, ULongWord end) override |
virtual void | setMachine (Machine &mach) override |
virtual void | unsetMachine () |
virtual Machine * | machine () const |
virtual void | ensureRegistration (const Component &component) const |
virtual bool | isRegistered () const |
virtual ObjectState * | saveState () const |
virtual void | loadState (const ObjectState *state) |
Public Member Functions inherited from TTAMachine::AddressSpace | |
AddressSpace (const std::string &name, int width, ULongWord minAddress, ULongWord maxAddress, Machine &owner) | |
AddressSpace (const ObjectState *state, Machine &owner) | |
virtual | ~AddressSpace () |
virtual void | addNumericalId (unsigned id) |
virtual bool | hasNumericalId (unsigned id) const |
std::set< unsigned > | numericalIds () const |
bool | setNumericalIds (const std::set< unsigned > &ids) |
virtual void | setShared (bool shared) |
virtual bool | isShared () const |
bool | operator== (const AddressSpace &other) const |
bool | operator!= (const AddressSpace &other) const |
Public Member Functions inherited from TTAMachine::Component | |
virtual | ~Component () |
Public Member Functions inherited from Serializable | |
virtual | ~Serializable () |
Static Public Member Functions | |
static NullAddressSpace & | instance () |
Private Member Functions | |
NullAddressSpace () | |
virtual | ~NullAddressSpace () |
Static Private Attributes | |
static NullAddressSpace | instance_ |
The only instance of NullAddressSpace. More... | |
static Machine | machine_ |
Machine to which the null address space is registered. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from TTAMachine::AddressSpace | |
static const std::string | OSNAME_ADDRESS_SPACE = "adress_space" |
ObjectState name for AddressSpace. More... | |
static const std::string | OSKEY_WIDTH = "width" |
ObjectState attribute key for the bit width. More... | |
static const std::string | OSKEY_MIN_ADDRESS = "min_a" |
ObjectState attribute key for minimum address. More... | |
static const std::string | OSKEY_MAX_ADDRESS = "max_a" |
ObjectState attribute key for maximum address. More... | |
static const std::string | OSKEY_SHARED_MEMORY = "shared-memory" |
static const std::string | OSKEY_NUMERICAL_ID = "numerical-id" |
Static Public Attributes inherited from TTAMachine::Component | |
static const std::string | OSNAME_COMPONENT = "component" |
ObjectState name for component. More... | |
static const std::string | OSKEY_NAME = "name" |
ObjectState attribute key for the name of the component. More... | |
Protected Member Functions inherited from TTAMachine::Component | |
Component (const std::string &name) | |
Component (const ObjectState *state) | |
void | internalSetMachine (Machine &machine) |
void | internalUnsetMachine () |
Protected Member Functions inherited from TTAMachine::MachinePart | |
MachinePart () | |
virtual | ~MachinePart () |
A singleton class which represents a null AddressSpace.
All the methods abort the program.
Definition at line 45 of file NullAddressSpace.hh.
|
private |
The constructor.
Definition at line 44 of file NullAddressSpace.cc.
|
privatevirtual |
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::AddressSpace.
Definition at line 97 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
IllegalRegistration | Never thrown. |
Reimplemented from TTAMachine::Component.
Definition at line 183 of file NullAddressSpace.cc.
References abortWithError.
|
static |
Returns the only instance of NullAddressSpace.
Definition at line 62 of file NullAddressSpace.cc.
References instance_.
Referenced by SimControlLanguageCommand::parseDataAddressExpression(), and SimControlLanguageCommand::setMemoryAddress().
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 193 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
ObjectStateLoadingException | Never thrown. |
Reimplemented from TTAMachine::AddressSpace.
Definition at line 217 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 171 of file NullAddressSpace.cc.
References abortWithError.
|
overridevirtual |
Aborts the program with error message.
Reimplemented from TTAMachine::Component.
Definition at line 109 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::AddressSpace.
Definition at line 205 of file NullAddressSpace.cc.
References abortWithError.
|
overridevirtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::AddressSpace.
Definition at line 142 of file NullAddressSpace.cc.
References abortWithError.
|
overridevirtual |
Aborts the program with error message.
ComponentAlreadyExists | Never thrown. |
Reimplemented from TTAMachine::AddressSpace.
Definition at line 152 of file NullAddressSpace.cc.
References abortWithError.
|
overridevirtual |
Aborts the program with error message.
ComponentAlreadyExists | Never thrown. |
InvalidName | Never thrown. |
Reimplemented from TTAMachine::AddressSpace.
Definition at line 122 of file NullAddressSpace.cc.
References abortWithError.
|
overridevirtual |
Aborts the program with error message.
OutOfRange | Never thrown. |
Reimplemented from TTAMachine::AddressSpace.
Definition at line 132 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::AddressSpace.
Definition at line 85 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::AddressSpace.
Definition at line 160 of file NullAddressSpace.cc.
References abortWithError.
|
virtual |
Aborts the program with error message.
Reimplemented from TTAMachine::AddressSpace.
Definition at line 73 of file NullAddressSpace.cc.
References abortWithError.
|
staticprivate |
The only instance of NullAddressSpace.
Definition at line 72 of file NullAddressSpace.hh.
Referenced by instance().
|
staticprivate |
Machine to which the null address space is registered.
Definition at line 74 of file NullAddressSpace.hh.