Canola  0.8.D001
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions
debugger Class Reference

#include <debugger.h>

Inheritance diagram for debugger:
debugger_gnome

List of all members.

Public Types

typedef boost::shared_ptr
< debugger
pointer

Public Member Functions

virtual ~debugger ()
virtual void display_x_register (const number &value)=0
virtual void display_y_register (const number &value)=0
virtual void display_memory (int n, const number &value)=0
virtual void display_address (int addr)=0
virtual void display_opcode (opcode_t op)=0
virtual void display_location (const location::pointer &where)=0
virtual void display_mstate (const char *text)=0

Protected Member Functions

 debugger ()

Private Member Functions

 debugger (const debugger &rhs)
debuggeroperator= (const debugger &rhs)

Detailed Description

The debugger class is used to represent the state of an object being used to debug the inner workings of the calculator.

Definition at line 32 of file debugger.h.


Member Typedef Documentation

typedef boost::shared_ptr<debugger> debugger::pointer

Definition at line 35 of file debugger.h.


Constructor & Destructor Documentation

debugger::~debugger ( ) [virtual]

The destructor.

Definition at line 21 of file debugger.cc.

debugger::debugger ( ) [protected]

The default constructor. For use by derived classes only.

Definition at line 26 of file debugger.cc.

debugger::debugger ( const debugger rhs) [private]

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

virtual void debugger::display_address ( int  addr) [pure virtual]

The display_address method is used to update the displayed value of the address of the next opcode to be executed.

Implemented in debugger_gnome.

virtual void debugger::display_location ( const location::pointer where) [pure virtual]

The display_location method is used to update the displayed value of the source code text, highlighting the section that is the token for the next opcode to be executed.

Implemented in debugger_gnome.

virtual void debugger::display_memory ( int  n,
const number value 
) [pure virtual]

The display_memory method is used to update the displayed value of the memory specified.

Parameters:
nwhich memory is being updated (1..14)
valuethe value of the specified memory location

Implemented in debugger_gnome.

virtual void debugger::display_mstate ( const char *  text) [pure virtual]

Implemented in debugger_gnome.

virtual void debugger::display_opcode ( opcode_t  op) [pure virtual]

The display_opcode method is used to update the displayed value of the next opcode to be executed.

Implemented in debugger_gnome.

virtual void debugger::display_x_register ( const number value) [pure virtual]

The display_x_register method is used to update the displayed value of the X register.

Implemented in debugger_gnome.

virtual void debugger::display_y_register ( const number value) [pure virtual]

The display_y_register method is used to update the displayed value of the Y register.

Implemented in debugger_gnome.

debugger& debugger::operator= ( const debugger rhs) [private]

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.

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