OpenASIP  2.0
Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
SimulatorToolbox Class Reference

#include <SimulatorToolbox.hh>

Collaboration diagram for SimulatorToolbox:
Collaboration graph

Static Public Member Functions

static OperationPooloperationPool ()
 
static SimulatorTextGeneratortextGenerator ()
 
static boost::regex fuPortRegex ()
 

Protected Member Functions

 SimulatorToolbox ()
 Instantiation not allowed. More...
 

Private Member Functions

 SimulatorToolbox (const SimulatorToolbox &)
 Copying not allowed. More...
 
SimulatorToolboxoperator= (const SimulatorToolbox &)
 Assignment not allowed. More...
 

Static Private Attributes

static OperationPoolpool_
 Global instance of OperationPool. More...
 
static SimulatorTextGenerator textGenerator_
 Global instance of SimulatorTextGenerator. More...
 

Detailed Description

Class that offers global services to Simulator classes.

Services provided by this utility class are provided as singleton instances. None of the returned data are simulation specific, thus the instances can be shared by multiple parallel simulations.

Definition at line 56 of file SimulatorToolbox.hh.

Constructor & Destructor Documentation

◆ SimulatorToolbox() [1/2]

SimulatorToolbox::SimulatorToolbox ( )
protected

Instantiation not allowed.

Constructor.

Definition at line 53 of file SimulatorToolbox.cc.

53  {
54 }

◆ SimulatorToolbox() [2/2]

SimulatorToolbox::SimulatorToolbox ( const SimulatorToolbox )
private

Copying not allowed.

Member Function Documentation

◆ fuPortRegex()

boost::regex SimulatorToolbox::fuPortRegex ( )
static

Returns a regular expression to parse a FU port string.

Returns
The regular expression.

Definition at line 85 of file SimulatorToolbox.cc.

85  {
86  return boost::regex("(.*)\\.(.*)");
87 }

Referenced by SimulatorFrontend::state().

◆ operationPool()

OperationPool & SimulatorToolbox::operationPool ( )
static

Returns the instance of OperationPool.

Returns
The instance of OperationPool.

Definition at line 62 of file SimulatorToolbox.cc.

62  {
63  if (pool_ == NULL) {
64  pool_ = new OperationPool();
65  }
66  return *pool_;
67 }

References pool_.

Referenced by MachineStateBuilder::addVirtualOpcodeSettingPortsToFU(), MachineStateBuilder::bindPortsToOperands(), and MachineStateBuilder::buildMachineState().

◆ operator=()

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

Assignment not allowed.

◆ textGenerator()

SimulatorTextGenerator & SimulatorToolbox::textGenerator ( )
static

Returns the instance of SimulatorTextGenerator.

Returns
The instance of SimulatorTextGenerator.

Definition at line 75 of file SimulatorToolbox.cc.

75  {
76  return textGenerator_;
77 }

References textGenerator_.

Referenced by SimControlLanguageCommand::askConditionFromUser(), SimControlLanguageCommand::askExpressionFromUser(), MachineStateBuilder::bindPortsToOperands(), MachineStateBuilder::buildMachineState(), SimControlLanguageCommand::checkProgramLoaded(), SimControlLanguageCommand::checkSimulationEnded(), SimControlLanguageCommand::checkSimulationInitialized(), SimControlLanguageCommand::checkSimulationNotAlreadyRunning(), SimControlLanguageCommand::checkSimulationStopped(), CompiledSimSettingCommand::CompiledSimSettingCommand(), HelpCommand::execute(), ProgCommand::execute(), ConfCommand::execute(), KillCommand::execute(), MachCommand::execute(), DeleteBPCommand::execute(), MemDumpCommand::execute(), ConditionCommand::execute(), IgnoreCommand::execute(), MemWriteCommand::execute(), InfoCommand::execute(), SettingCommand::execute(), InfoRegistersCommand::execute(), InfoImmediatesCommand::execute(), InfoBussesCommand::execute(), InfoPortsCommand::execute(), InfoSegmentsCommand::execute(), InfoProcCommand::execute(), InfoStatsCommand::execute(), InfoProgramCommand::execute(), ProgCommand::helpText(), QuitCommand::helpText(), KillCommand::helpText(), HelpCommand::helpText(), MachCommand::helpText(), ConfCommand::helpText(), IgnoreCommand::helpText(), MemDumpCommand::helpText(), CommandsCommand::helpText(), DeleteBPCommand::helpText(), UntilCommand::helpText(), NextiCommand::helpText(), DisableBPCommand::helpText(), ResumeCommand::helpText(), ConditionCommand::helpText(), EnableBPCommand::helpText(), StepiCommand::helpText(), TBPCommand::helpText(), BPCommand::helpText(), WatchCommand::helpText(), RunCommand::helpText(), MemWriteCommand::helpText(), DisassembleCommand::helpText(), InfoCommand::helpText(), SettingCommand::helpText(), SimulatorFrontend::initializeDataMemories(), SimulatorFrontend::loadMachine(), SimulatorFrontend::loadProcessorConfiguration(), SimulatorFrontend::loadProgram(), main(), SimControlLanguageCommand::parseBreakpoint(), SimControlLanguageCommand::parseDataAddressExpression(), SimControlLanguageCommand::parseInstructionAddressExpression(), SimControlLanguageCommand::printBreakpointInfo(), SimulatorCmdLineOptions::printHelp(), SimControlLanguageCommand::printStopReasons(), SimProgramBuilder::processBidirTerminal(), SimProgramBuilder::processInstruction(), SimProgramBuilder::processMove(), SimProgramBuilder::processSourceTerminal(), SimControlLanguageCommand::setMemoryPointer(), SettingCommand::SettingCommand(), SimulatorFrontend::SimulatorFrontend(), and SimControlLanguageCommand::verifyBreakpointHandles().

Member Data Documentation

◆ pool_

POP_CLANG_DIAGS OperationPool * SimulatorToolbox::pool_
staticprivate

Global instance of OperationPool.

Definition at line 75 of file SimulatorToolbox.hh.

Referenced by operationPool().

◆ textGenerator_

SimulatorTextGenerator SimulatorToolbox::textGenerator_
staticprivate

Global instance of SimulatorTextGenerator.

Definition at line 77 of file SimulatorToolbox.hh.

Referenced by textGenerator().


The documentation for this class was generated from the following files:
SimulatorToolbox::textGenerator_
static SimulatorTextGenerator textGenerator_
Global instance of SimulatorTextGenerator.
Definition: SimulatorToolbox.hh:77
SimulatorToolbox::pool_
static OperationPool * pool_
Global instance of OperationPool.
Definition: SimulatorToolbox.hh:75
OperationPool
Definition: OperationPool.hh:52