OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
NullRegisterFileState Class Reference

#include <RegisterFileState.hh>

Inheritance diagram for NullRegisterFileState:
Inheritance graph
Collaboration diagram for NullRegisterFileState:
Collaboration graph

Public Member Functions

virtual ~NullRegisterFileState ()
 
virtual RegisterStateregisterState (int index)
 
- Public Member Functions inherited from RegisterFileState
 RegisterFileState (int size, int width, bool zeroRegister=false)
 
virtual ~RegisterFileState ()
 
virtual std::size_t registerCount () const
 

Static Public Member Functions

static NullRegisterFileStateinstance ()
 

Private Member Functions

 NullRegisterFileState ()
 
 NullRegisterFileState (const NullRegisterFileState &)
 Copying not allowed.
 
NullRegisterFileStateoperator= (const NullRegisterFileState &)
 Assignment not allowed.
 

Static Private Attributes

static NullRegisterFileStateinstance_ = NULL
 Unique instance of NullRegisterFileState.
 

Detailed Description

Models non-existing RegisterFileState.

Definition at line 78 of file RegisterFileState.hh.

Constructor & Destructor Documentation

◆ ~NullRegisterFileState()

NullRegisterFileState::~NullRegisterFileState ( )
virtual

Destructor.

Definition at line 127 of file RegisterFileState.cc.

127 {
128}

◆ NullRegisterFileState() [1/2]

NullRegisterFileState::NullRegisterFileState ( )
private

Constructor.

Definition at line 121 of file RegisterFileState.cc.

Referenced by instance().

◆ NullRegisterFileState() [2/2]

NullRegisterFileState::NullRegisterFileState ( const NullRegisterFileState )
private

Copying not allowed.

Member Function Documentation

◆ instance()

NullRegisterFileState & NullRegisterFileState::instance ( )
static

Returns the instance of NullRegisterFileState.

Returns
The instance of NullRegisterFileState.

Definition at line 111 of file RegisterFileState.cc.

111 {
112 if (instance_ == NULL) {
114 }
115 return *instance_;
116}
static NullRegisterFileState * instance_
Unique instance of NullRegisterFileState.

References instance_, and NullRegisterFileState().

Referenced by MachineStateBuilder::buildMachineState(), RFTestbenchGenerator::createStimulus(), SimProgramBuilder::processBidirTerminal(), and MachineState::registerFileState().

Here is the call graph for this function:

◆ operator=()

NullRegisterFileState & NullRegisterFileState::operator= ( const NullRegisterFileState )
private

Assignment not allowed.

◆ registerState()

RegisterState & NullRegisterFileState::registerState ( int  index)
virtual

Aborts the program with error message.

Returns
Never returns.
Exceptions
OutOfRangeNever throws.

Reimplemented from RegisterFileState.

Definition at line 137 of file RegisterFileState.cc.

137 {
138 Application::abortWithError("registerState()");
140}
static NullRegisterState & instance()

References NullRegisterState::instance().

Here is the call graph for this function:

Member Data Documentation

◆ instance_

NullRegisterFileState * NullRegisterFileState::instance_ = NULL
staticprivate

Unique instance of NullRegisterFileState.

Definition at line 94 of file RegisterFileState.hh.

Referenced by instance().


The documentation for this class was generated from the following files: