OpenASIP
2.0
|
#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. More... | |
NullAddress & | operator= (const NullAddress &) |
Assignment not allowed. More... | |
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::NullProcedure::address(), TTAProgram::NullInstruction::address(), TTAProgram::NullProcedure::endAddress(), TTAProgram::NullProgram::entryAddress(), TTAProgram::NullProgram::startAddress(), and TTAProgram::NullProcedure::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.
|
staticprivate |
Definition at line 62 of file NullAddress.hh.
Referenced by instance().