KoMo2  1.0.0
A modern ARM emulator GUI.
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DisassemblyRows Class Reference

A single instance of this class represents a single read memory address and the associated data - this is shown as a single row in the disassembly window. More...

#include <DisassemblyView.h>

Inheritance diagram for DisassemblyRows:

Public Member Functions

 DisassemblyRows ()
 Construct a new DisassemblyRows::DisassemblyRows object.
 
void setBreakpoint (const bool text)
 Set the state of the breakpoint button. This is a little unusual - it sets the state in terms of CSS state, making the button appear either toggled or un-toggled. More...
 
void setAddress (const std::string text)
 Set the text of the address label. More...
 
void setHex (const std::string text)
 Set the text of the hex label. More...
 
void setDisassembly (const std::string text)
 Set the text of disassembly label. More...
 
void setAddressVal (const uint32_t val)
 Set the value of addressVal member. More...
 
void setModel (DisassemblyModel *const val)
 Sets the value of the model pointer. More...
 
Gtk::ToggleButton *const getButton ()
 Gets a constant pointer to the breakpoint button member. More...
 
const uint32_t getAddressVal () const
 Get the addressVal member. More...
 
const bool getBreakpoint ()
 Returns if a breakpoint is set or not. More...
 
const std::string getDisassembly ()
 Gets the disassembly text for the breakpoint row. More...
 
const std::string getAddress () const
 Get the text in the address box. More...
 

Private Member Functions

void initBreakpoint ()
 Initialises the breakpoint button.
 
void initAddress ()
 Initialises the address label.
 
void initHex ()
 Initialises the hex label.
 
void initDisassembly ()
 Initialises the disassembly label.
 
 DisassemblyRows (const DisassemblyRows &)=delete
 
 DisassemblyRows (const DisassemblyRows &&)=delete
 
DisassemblyRowsoperator= (const DisassemblyRows &)=delete
 
DisassemblyRowsoperator= (const DisassemblyRows &&)=delete
 

Private Attributes

Gtk::HBox buttonSizer
 Setting exact size of widgets is hard; this container is needed to set the size of the button.
 
Gtk::ToggleButton breakpoint
 The debugging breakpoint button.
 
Gtk::Label address
 Displays the address of the current memory value.
 
Gtk::Label hex
 Displays the current hexadecimal value of the memory.
 
Gtk::Label disassembly
 Displays the current disassembly value of the memory.
 
uint32_t addressVal
 The address pointed to, as an integer.
 
DisassemblyModelmodel
 A pointer to the model.
 

Detailed Description

A single instance of this class represents a single read memory address and the associated data - this is shown as a single row in the disassembly window.

Definition at line 28 of file DisassemblyView.h.

Member Function Documentation

const std::string DisassemblyRows::getAddress ( ) const

Get the text in the address box.

Returns
const std::string The text in the address box.

Definition at line 198 of file DisassemblyView.cpp.

const uint32_t DisassemblyRows::getAddressVal ( ) const

Get the addressVal member.

Returns
const uint32_t The addressVal member.

Definition at line 205 of file DisassemblyView.cpp.

const bool DisassemblyRows::getBreakpoint ( )

Returns if a breakpoint is set or not.

Returns
true if the breakpoint is set.
false if the breakpoint is not set.

Definition at line 220 of file DisassemblyView.cpp.

Gtk::ToggleButton *const DisassemblyRows::getButton ( )

Gets a constant pointer to the breakpoint button member.

Returns
Gtk::ToggleButton* const A constant pointer to the breakpoint button member.

Definition at line 184 of file DisassemblyView.cpp.

const std::string DisassemblyRows::getDisassembly ( )

Gets the disassembly text for the breakpoint row.

Returns
const std::string The disassembly text.

Definition at line 228 of file DisassemblyView.cpp.

void DisassemblyRows::setAddress ( const std::string  text)

Set the text of the address label.

Parameters
textThe text to set the label to.

Definition at line 162 of file DisassemblyView.cpp.

void DisassemblyRows::setAddressVal ( const uint32_t  val)

Set the value of addressVal member.

Parameters
valThe value to set it to.

Definition at line 212 of file DisassemblyView.cpp.

void DisassemblyRows::setBreakpoint ( const bool  state)

Set the state of the breakpoint button. This is a little unusual - it sets the state in terms of CSS state, making the button appear either toggled or un-toggled.

Parameters
stateThe state to set the breakpoint to.

Definition at line 151 of file DisassemblyView.cpp.

void DisassemblyRows::setDisassembly ( const std::string  text)

Set the text of disassembly label.

Parameters
textThe text to set the disassembly label to.

Definition at line 176 of file DisassemblyView.cpp.

void DisassemblyRows::setHex ( const std::string  text)

Set the text of the hex label.

Parameters
textThe text to set the hex label to.

Definition at line 169 of file DisassemblyView.cpp.

void DisassemblyRows::setModel ( DisassemblyModel *const  val)

Sets the value of the model pointer.

Parameters
valThe value to set the model pointer to.

Definition at line 191 of file DisassemblyView.cpp.


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