|
OpenASIP 2.2
|
#include <NullProcedure.hh>


Static Public Member Functions | |
| static NullProcedure & | instance () |
Protected Member Functions | |
| NullProcedure () | |
Private Member Functions | |
| NullProcedure (const NullProcedure &) | |
| Copying not allowed. | |
| NullProcedure & | operator= (const NullProcedure &) |
| Assignment not allowed. | |
Static Private Attributes | |
| static NullProcedure | instance_ |
| Unique instance of NullProcedure. | |
Additional Inherited Members | |
Protected Types inherited from TTAProgram::CodeSnippet | |
| typedef std::vector< Instruction * > | InsList |
| List of instructions. | |
| typedef InsList::iterator | InsIter |
| Iterator for the instruction list. | |
Protected Attributes inherited from TTAProgram::CodeSnippet | |
| InsList | instructions_ |
| The instructions in this procedure. | |
| Program * | parent_ |
| The parent program of the procedure. | |
| Address | startAddr_ |
| The start (lowest) address of the procedure. | |
| Address | endAddr_ |
| The highest address of the procedure. | |
A singleton class that represents a null procedure.
Calling any method causes the program to abort.
Definition at line 50 of file NullProcedure.hh.
|
virtual |
|
protected |
The constructor.
Definition at line 52 of file NullProcedure.cc.
|
private |
Copying not allowed.
| void TTAProgram::NullProcedure::addInstruction | ( | Instruction & | ins | ) |
Aborts program with error log message.
| IllegalRegistration | never. |
Definition at line 240 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 122 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullAddress::instance().

| int TTAProgram::NullProcedure::alignment | ( | ) | const |
Definition at line 110 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 152 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullAddress::instance().

|
virtual |
Returns the first instruction in the code snippet.
| InstanceNotFound | if there are no instructions in the code snippet. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 169 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 193 of file NullProcedure.cc.
References abortWithError.
| void TTAProgram::NullProcedure::insertInstructionAfter | ( | const Instruction & | pos, |
| Instruction * | ins | ||
| ) |
Aborts program with error log message.
| IllegalRegistration | never. |
Definition at line 250 of file NullProcedure.cc.
References abortWithError.
|
static |
Returns an instance of NullProcedure class (singleton).
Definition at line 68 of file NullProcedure.cc.
References instance_.
Referenced by TTAProgram::NullProgram::firstProcedure(), TTAProgram::Instruction::isInProcedure(), TTAProgram::NullProgram::lastProcedure(), TTAProgram::NullProgram::nextProcedure(), TTAProgram::Program::nextProcedure(), TTAProgram::NullInstruction::parent(), TTAProgram::NullProgram::procedure(), TTAProgram::NullProgram::procedure(), TTAProgram::CodeSnippet::remove(), and TTAProgram::Procedure::remove().
|
virtual |
Aborts program with error log message.
| KeyNotFound | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 181 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 163 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 98 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 229 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

| std::string TTAProgram::NullProcedure::name | ( | ) | const |
Definition at line 104 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 205 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

|
private |
Assignment not allowed.
|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 79 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullProgram::instance().

|
virtual |
Aborts program with error log message.
| IllegalRegistration | never. |
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 217 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullInstruction::instance().

|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 88 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 142 of file NullProcedure.cc.
References abortWithError.
|
virtual |
Aborts program with error log message.
Reimplemented from TTAProgram::CodeSnippet.
Definition at line 133 of file NullProcedure.cc.
References abortWithError, and TTAProgram::NullAddress::instance().

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