ComSquare
Public Member Functions | Private Attributes | List of all members
ComSquare::Debugger::CPU::HistoryModel Class Reference

The qt model that show the history. More...

#include <CPUDebug.hpp>

Inheritance diagram for ComSquare::Debugger::CPU::HistoryModel:
Collaboration diagram for ComSquare::Debugger::CPU::HistoryModel:

Public Member Functions

 HistoryModel ()
 
 HistoryModel (const HistoryModel &)=delete
 
const HistoryModeloperator= (const HistoryModel &)=delete
 
 ~HistoryModel () override=default
 
void log (const ExecutedInstruction &)
 Log a new instruction. More...
 
void clear ()
 Remove every instructions of the history. More...
 
int rowCount (const QModelIndex &parent) const override
 The number of row the table has. More...
 
int columnCount (const QModelIndex &parent) const override
 The number of column the table has. More...
 
QVariant data (const QModelIndex &index, int role) const override
 Return a data representing the table cell. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 Override the headers to use hex values. More...
 

Private Attributes

std::vector< ExecutedInstruction_instructions = {}
 

Detailed Description

The qt model that show the history.

Constructor & Destructor Documentation

◆ HistoryModel() [1/2]

ComSquare::Debugger::CPU::HistoryModel::HistoryModel ( )
default

◆ HistoryModel() [2/2]

ComSquare::Debugger::CPU::HistoryModel::HistoryModel ( const HistoryModel )
delete

◆ ~HistoryModel()

ComSquare::Debugger::CPU::HistoryModel::~HistoryModel ( )
overridedefault

Member Function Documentation

◆ clear()

void ComSquare::Debugger::CPU::HistoryModel::clear ( )

Remove every instructions of the history.

◆ columnCount()

int ComSquare::Debugger::CPU::HistoryModel::columnCount ( const QModelIndex &  parent) const
override

The number of column the table has.

◆ data()

QVariant ComSquare::Debugger::CPU::HistoryModel::data ( const QModelIndex &  index,
int  role 
) const
override

Return a data representing the table cell.

◆ headerData()

QVariant ComSquare::Debugger::CPU::HistoryModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Override the headers to use hex values.

◆ log()

void ComSquare::Debugger::CPU::HistoryModel::log ( const ExecutedInstruction instruction)

Log a new instruction.

◆ operator=()

const HistoryModel& ComSquare::Debugger::CPU::HistoryModel::operator= ( const HistoryModel )
delete

◆ rowCount()

int ComSquare::Debugger::CPU::HistoryModel::rowCount ( const QModelIndex &  parent) const
override

The number of row the table has.

Member Data Documentation

◆ _instructions

std::vector<ExecutedInstruction> ComSquare::Debugger::CPU::HistoryModel::_instructions = {}
private

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