OpenASIP  2.0
Public Member Functions | List of all members
CompiledSimInterpreter Class Reference

#include <CompiledSimInterpreter.hh>

Inheritance diagram for CompiledSimInterpreter:
Inheritance graph
Collaboration diagram for CompiledSimInterpreter:
Collaboration graph

Public Member Functions

 CompiledSimInterpreter (int argc, char *argv[], SimulatorInterpreterContext &context, LineReader &reader)
 
virtual ~CompiledSimInterpreter ()
 
- Public Member Functions inherited from SimulatorInterpreter
 SimulatorInterpreter (int argc, char *argv[], SimulatorInterpreterContext &context, LineReader &reader)
 
virtual ~SimulatorInterpreter ()
 
bool isQuitCommandGiven () const
 
void setQuitCommandGiven ()
 
- Public Member Functions inherited from TclInterpreter
 TclInterpreter ()
 
virtual ~TclInterpreter ()
 
virtual void initialize (int argc, char *argv[], InterpreterContext *context, LineReader *reader)
 
virtual void setVariableToInterpreter (const std::string &name, const DataObject &value)
 
virtual DataObject variable (const std::string &name)
 
virtual bool interpret (const std::string &commandLine)
 
virtual void setResultToInterpreter (const DataObject &value)
 
virtual bool processScriptFile (const std::string &scriptFileName)
 
virtual InterpreterContextcontext () const
 
- Public Member Functions inherited from ScriptInterpreter
 ScriptInterpreter ()
 
virtual ~ScriptInterpreter ()
 
virtual void addCustomCommand (CustomCommand *command)
 
virtual void removeCustomCommand (const std::string &commandName)
 
virtual CustomCommandcustomCommand (const std::string &commandName)
 
virtual void setResult (DataObject *result)
 
virtual void setResult (const std::string &result)
 
virtual void setResult (int result)
 
virtual void setResult (double result)
 
virtual std::string result ()
 
virtual void setError (bool state)
 
virtual void setError (std::string errorMessage)
 
virtual bool error () const
 
virtual void setVariable (const std::string &interpreterVariableName, const std::string &value)
 
virtual void setVariable (const std::string &interpreterVariableName, int value)
 
virtual std::string variableStringValue (const std::string &interpreterVariableName)
 
virtual int variableIntegerValue (const std::string &interpreterVariableName)
 
virtual void finalize ()
 
virtual void setLineReader (LineReader *reader)
 
virtual LineReaderlineReader () const
 
std::vector< std::string > customCommandsSortedByName ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TclInterpreter
static DataObject tclObjToDataObject (Tcl_Obj *object)
 
static Tcl_Obj * dataObjectToTclObj (const DataObject &object)
 
static int customCommandRedirector (ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
 
- Protected Member Functions inherited from TclInterpreter
virtual void addCustomCommandToInterpreter (const CustomCommand &command)
 
virtual void removeCustomCommandFromInterpreter (const CustomCommand &command)
 

Detailed Description

SimulatorInterpreter class specific to the compiled simulator

Definition at line 42 of file CompiledSimInterpreter.hh.

Constructor & Destructor Documentation

◆ CompiledSimInterpreter()

CompiledSimInterpreter::CompiledSimInterpreter ( int  argc,
char *  argv[],
SimulatorInterpreterContext context,
LineReader reader 
)

The constructor

Parameters
argcargument count
argvargument list
contextsimulator interpreter context
readercommand line reader

Definition at line 43 of file CompiledSimInterpreter.cc.

48  argc, argv, context, reader) {
49 
50  // remove unsupported commands
51  removeCustomCommand("bp");
52  removeCustomCommand("tbp");
53  removeCustomCommand("condition");
54  removeCustomCommand("enablebp");
55  removeCustomCommand("disablebp");
56  removeCustomCommand("deletebp");
57  removeCustomCommand("ignore");
58  removeCustomCommand("setting");
60 }

References ScriptInterpreter::addCustomCommand(), and ScriptInterpreter::removeCustomCommand().

Here is the call graph for this function:

◆ ~CompiledSimInterpreter()

CompiledSimInterpreter::~CompiledSimInterpreter ( )
virtual

Default destructor

Definition at line 65 of file CompiledSimInterpreter.cc.

65  {
66 }

The documentation for this class was generated from the following files:
CompiledSimSettingCommand
Definition: CompiledSimSettingCommand.hh:41
SimulatorInterpreter::SimulatorInterpreter
SimulatorInterpreter(int argc, char *argv[], SimulatorInterpreterContext &context, LineReader &reader)
Definition: SimulatorInterpreter.cc:76
ScriptInterpreter::removeCustomCommand
virtual void removeCustomCommand(const std::string &commandName)
Definition: ScriptInterpreter.cc:92
TclInterpreter::context
virtual InterpreterContext & context() const
Definition: TclInterpreter.cc:298
ScriptInterpreter::addCustomCommand
virtual void addCustomCommand(CustomCommand *command)
Definition: ScriptInterpreter.cc:78