Public Member Functions | Protected Member Functions | Protected Attributes
Aseba::LocalVirtualMachine Class Reference

The virtual machine running in local. More...

#include <LocalVirtualMachine.h>

Inheritance diagram for Aseba::LocalVirtualMachine:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool clearBreakpoint (unsigned line)
virtual void clearBreakpoints ()
virtual bool connect ()
void emitArrayAccessOutOfBounds (unsigned short pc, unsigned short sp, unsigned short index)
void emitDivisionByZero (unsigned short pc, unsigned short sp)
void emitEvent (unsigned short id, unsigned short start, unsigned short length)
virtual const
TargetDescription *const 
getConstDescription ()
virtual TargetDescriptiongetDescription ()
 LocalVirtualMachine ()
 Constructor, build an initial description.
virtual void next ()
virtual void runBackground ()
virtual void runStepSwitch ()
virtual bool setBreakpoint (unsigned line)
virtual void setupEvent (unsigned id)
virtual void sizesChanged ()
virtual void stop ()
virtual void uploadBytecode (const BytecodeVector &bytecode)

Protected Member Functions

void timerEvent (QTimerEvent *event)

Protected Attributes

BytecodeVector debugBytecode
 bytecode with debug information
TargetDescription description
 description of the virtual machine, can be modified by GUI
bool runEvent
 when true, mode is run, otherwise step by step
std::valarray< uint16vmBytecode
 bytecodes content
std::valarray< sint16vmStack
 stack content
AsebaVMState vmState
 state of virtual machine
std::valarray< sint16vmVariables
 variables content

Detailed Description

The virtual machine running in local.

Definition at line 31 of file LocalVirtualMachine.h.


Constructor & Destructor Documentation

Constructor, build an initial description.

Definition at line 85 of file LocalVirtualMachine.cpp.


Member Function Documentation

bool Aseba::LocalVirtualMachine::clearBreakpoint ( unsigned  line) [virtual]

Definition at line 201 of file LocalVirtualMachine.cpp.

Definition at line 209 of file LocalVirtualMachine.cpp.

virtual bool Aseba::LocalVirtualMachine::connect ( ) [inline, virtual]

Definition at line 37 of file LocalVirtualMachine.h.

void Aseba::LocalVirtualMachine::emitArrayAccessOutOfBounds ( unsigned short  pc,
unsigned short  sp,
unsigned short  index 
)

Definition at line 259 of file LocalVirtualMachine.cpp.

void Aseba::LocalVirtualMachine::emitDivisionByZero ( unsigned short  pc,
unsigned short  sp 
)

Definition at line 271 of file LocalVirtualMachine.cpp.

void Aseba::LocalVirtualMachine::emitEvent ( unsigned short  id,
unsigned short  start,
unsigned short  length 
)

Definition at line 253 of file LocalVirtualMachine.cpp.

virtual const TargetDescription* const Aseba::LocalVirtualMachine::getConstDescription ( ) [inline, virtual]

Definition at line 39 of file LocalVirtualMachine.h.

Definition at line 40 of file LocalVirtualMachine.h.

Definition at line 144 of file LocalVirtualMachine.cpp.

Definition at line 179 of file LocalVirtualMachine.cpp.

Definition at line 167 of file LocalVirtualMachine.cpp.

bool Aseba::LocalVirtualMachine::setBreakpoint ( unsigned  line) [virtual]

Definition at line 193 of file LocalVirtualMachine.cpp.

void Aseba::LocalVirtualMachine::setupEvent ( unsigned  id) [virtual]

Definition at line 129 of file LocalVirtualMachine.cpp.

Definition at line 101 of file LocalVirtualMachine.cpp.

Definition at line 186 of file LocalVirtualMachine.cpp.

void Aseba::LocalVirtualMachine::timerEvent ( QTimerEvent *  event) [protected]

Definition at line 214 of file LocalVirtualMachine.cpp.

void Aseba::LocalVirtualMachine::uploadBytecode ( const BytecodeVector bytecode) [virtual]

Definition at line 120 of file LocalVirtualMachine.cpp.


Member Data Documentation

bytecode with debug information

Definition at line 72 of file LocalVirtualMachine.h.

description of the virtual machine, can be modified by GUI

Definition at line 66 of file LocalVirtualMachine.h.

when true, mode is run, otherwise step by step

Definition at line 67 of file LocalVirtualMachine.h.

std::valarray<uint16> Aseba::LocalVirtualMachine::vmBytecode [protected]

bytecodes content

Definition at line 69 of file LocalVirtualMachine.h.

std::valarray<sint16> Aseba::LocalVirtualMachine::vmStack [protected]

stack content

Definition at line 71 of file LocalVirtualMachine.h.

state of virtual machine

Definition at line 68 of file LocalVirtualMachine.h.

std::valarray<sint16> Aseba::LocalVirtualMachine::vmVariables [protected]

variables content

Definition at line 70 of file LocalVirtualMachine.h.


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


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39