|
OpenASIP 2.2
|
#include <NullAddress.hh>


Public Member Functions | |
| virtual | ~NullAddress () |
| UIntWord | location () const |
| const TTAMachine::AddressSpace & | space () const |
Public Member Functions inherited from TTAProgram::Address | |
| Address (InstructionAddress location, const TTAMachine::AddressSpace &space) | |
| ~Address () | |
| InstructionAddress | location () const |
| const TTAMachine::AddressSpace & | space () const |
| bool | operator== (const Address &other) const |
| bool | operator!= (const Address &other) const |
| bool | operator< (const Address &addr) const |
Static Public Member Functions | |
| static NullAddress & | instance () |
Protected Member Functions | |
| NullAddress () | |
Private Member Functions | |
| NullAddress (const NullAddress &) | |
| Copying not allowed. | |
| NullAddress & | operator= (const NullAddress &) |
| Assignment not allowed. | |
Static Private Attributes | |
| static NullAddress | instance_ |
A singleton class that represents a null address.
Calling any method causes the program to abort.
Definition at line 45 of file NullAddress.hh.
|
virtual |
|
protected |
The constructor.
Definition at line 49 of file NullAddress.cc.
|
private |
Copying not allowed.
|
static |
Returns an instance of NullAddress class (singleton).
Definition at line 65 of file NullAddress.cc.
References instance_.
Referenced by TTAProgram::NullInstruction::address(), TTAProgram::NullProcedure::address(), TTAProgram::NullProcedure::endAddress(), TTAProgram::NullProgram::entryAddress(), TTAProgram::NullProcedure::startAddress(), and TTAProgram::NullProgram::startAddress().
| UIntWord TTAProgram::NullAddress::location | ( | ) | const |
Aborts program with error log message.
Definition at line 75 of file NullAddress.cc.
References abortWithError.
|
private |
Assignment not allowed.
| const AddressSpace & TTAProgram::NullAddress::space | ( | ) | const |
Aborts program with error log message.
Definition at line 86 of file NullAddress.cc.
References abortWithError, and TTAMachine::NullAddressSpace::instance().

|
staticprivate |
Definition at line 62 of file NullAddress.hh.
Referenced by instance().