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

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

#include <CPUDebug.hpp>

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

Public Member Functions

 StackModel (Memory::IMemoryBus &bus, CPUDebug &cpu)
 
 StackModel (const StackModel &)=delete
 
const StackModeloperator= (const StackModel &)=delete
 
 ~StackModel () override=default
 
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

Memory::IMemoryBus_bus
 
CPUDebug_cpu
 

Detailed Description

The qt model that show the stack.

Constructor & Destructor Documentation

◆ StackModel() [1/2]

ComSquare::Debugger::CPU::StackModel::StackModel ( Memory::IMemoryBus bus,
CPUDebug cpu 
)
explicit

◆ StackModel() [2/2]

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

◆ ~StackModel()

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

Member Function Documentation

◆ columnCount()

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

The number of column the table has.

◆ data()

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

Return a data representing the table cell.

◆ headerData()

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

Override the headers to use hex values.

◆ operator=()

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

◆ rowCount()

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

The number of row the table has.

Member Data Documentation

◆ _bus

Memory::IMemoryBus& ComSquare::Debugger::CPU::StackModel::_bus
private

◆ _cpu

CPUDebug& ComSquare::Debugger::CPU::StackModel::_cpu
private

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