|
OpenASIP 2.2
|
#include <NullProgram.hh>


Static Public Member Functions | |
| static NullProgram & | instance () |
Static Public Member Functions inherited from TTAProgram::Program | |
| static Program * | loadFromUnscheduledTPEF (const std::string &tpefFileName, const TTAMachine::Machine &theMachine) |
| static Program * | loadFromTPEF (const std::string &tpefFileName, const TTAMachine::Machine &theMachine) |
| static Program * | loadFromUnscheduledTPEF (const std::string &tpefFileName) |
| static void | writeToTPEF (const TTAProgram::Program &program, const std::string &tpefFileName) |
Protected Member Functions | |
| NullProgram () | |
Private Member Functions | |
| NullProgram (const NullProgram &) | |
| Copying not allowed. | |
| NullProgram & | operator= (const NullProgram &) |
| Assignment not allowed. | |
Static Private Attributes | |
| static NullProgram | instance_ |
| Unique instance of NullProgram. | |
Additional Inherited Members | |
Public Types inherited from TTAProgram::Program | |
| typedef std::vector< Instruction * > | InstructionVector |
| Vector for instructions. | |
A singleton class that represents a null program.
Calling any method causes the program to abort.
Definition at line 45 of file NullProgram.hh.
|
virtual |
|
protected |
The constructor.
Definition at line 55 of file NullProgram.cc.
|
private |
Copying not allowed.
| void TTAProgram::NullProgram::addInstruction | ( | Instruction & | ins | ) |
Aborts program with error log message.
| IllegalRegistration | never. |
Definition at line 150 of file NullProgram.cc.
References abortWithError.
| void TTAProgram::NullProgram::addProcedure | ( | Procedure & | proc | ) |
Aborts program with error log message.
| IllegalRegistration | never. |
Definition at line 140 of file NullProgram.cc.
References abortWithError.
| Address TTAProgram::NullProgram::entryAddress | ( | ) | const |
Aborts program with error log message.
Definition at line 121 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullAddress::instance().

| Instruction & TTAProgram::NullProgram::firstInstruction | ( | ) | const |
Aborts program with error log message.
| InstanceNotFound | never. |
Definition at line 239 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

| Procedure & TTAProgram::NullProgram::firstProcedure | ( | ) | const |
Aborts program with error log message.
| InstanceNotFound | never. |
Definition at line 169 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().

| GlobalScope & TTAProgram::NullProgram::globalScope | ( | ) |
Aborts program with error log message.
Definition at line 82 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullGlobalScope::instance().

| const GlobalScope & TTAProgram::NullProgram::globalScopeConst | ( | ) | const |
Definition at line 88 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullGlobalScope::instance().

|
static |
Returns an instance of NullProgram class (singleton).
Definition at line 72 of file NullProgram.cc.
References instance_.
Referenced by ProgramGraph::generateProgram(), TTAProgram::CodeSnippet::isInProgram(), loadInputs(), TTAProgram::NullProcedure::parent(), ProximToolbox::program(), SimulatorFrontend::program(), TTAProgram::Program::removeProcedure(), and TTAProgram::CodeSnippet::setParent().
| const Instruction & TTAProgram::NullProgram::instructionAt | ( | UIntWord | address | ) | const |
Aborts program with error log message.
| KeyNotFound | never. |
Definition at line 251 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

| InstructionReferenceManager & TTAProgram::NullProgram::instructionReferenceManager | ( | ) |
Aborts program with error log message.
Definition at line 285 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullInstructionReferenceManager::instance().

| Instruction & TTAProgram::NullProgram::lastInstruction | ( | ) | const |
Aborts program with error log message.
| InstanceNotFound | never. |
Definition at line 274 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

| Procedure & TTAProgram::NullProgram::lastProcedure | ( | ) | const |
Aborts program with error log message.
| InstanceNotFound | never. |
Definition at line 181 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().

| const Instruction & TTAProgram::NullProgram::nextInstruction | ( | const Instruction & | ) | const |
Aborts program with error log message.
Definition at line 262 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

Aborts program with error log message.
Definition at line 192 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().

|
private |
Assignment not allowed.
| Procedure & TTAProgram::NullProgram::procedure | ( | const std::string & | name | ) | const |
Aborts program with error log message.
| KeyNotFound | never. |
Definition at line 227 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().

| Procedure & TTAProgram::NullProgram::procedure | ( | int | index | ) | const |
Aborts program with error log message.
| OutOfRange | never. |
Definition at line 215 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullProcedure::instance().

| int TTAProgram::NullProgram::procedureCount | ( | ) | const |
Aborts program with error log message.
Definition at line 203 of file NullProgram.cc.
References abortWithError.
Aborts program with error log message.
Definition at line 158 of file NullProgram.cc.
References abortWithError.
| void TTAProgram::NullProgram::setEntryAddress | ( | Address | address | ) |
Aborts program with error log message.
Definition at line 130 of file NullProgram.cc.
References abortWithError.
| Address TTAProgram::NullProgram::startAddress | ( | ) | const |
Aborts program with error log message.
Definition at line 110 of file NullProgram.cc.
References abortWithError, and TTAProgram::NullAddress::instance().

| TTAMachine::Machine & TTAProgram::NullProgram::targetProcessor | ( | ) | const |
Aborts program with error log message.
Definition at line 100 of file NullProgram.cc.
References abortWithError, and TTAMachine::NullMachine::instance().

|
staticprivate |
Unique instance of NullProgram.
Definition at line 88 of file NullProgram.hh.
Referenced by instance().