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

The qt model that bind the logs to the view. More...

#include <CGramDebug.hpp>

Inheritance diagram for ComSquare::Debugger::CGramModel:
Collaboration diagram for ComSquare::Debugger::CGramModel:

Public Member Functions

 CGramModel (ComSquare::PPU::PPU &ppu)
 
 CGramModel (const CGramModel &)=delete
 
const CGramModeloperator= (const CGramModel &)=delete
 
 ~CGramModel () 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...
 

Public Attributes

const int column = 16
 The number of columns. More...
 
const int rows = 16
 The number of rows. More...
 
int x
 
int y
 

Private Attributes

ComSquare::PPU::PPU_ppu
 The ppu to log the cgram. More...
 

Detailed Description

The qt model that bind the logs to the view.

Constructor & Destructor Documentation

◆ CGramModel() [1/2]

ComSquare::Debugger::CGramModel::CGramModel ( ComSquare::PPU::PPU ppu)
explicit

◆ CGramModel() [2/2]

ComSquare::Debugger::CGramModel::CGramModel ( const CGramModel )
delete

◆ ~CGramModel()

ComSquare::Debugger::CGramModel::~CGramModel ( )
overridedefault

Member Function Documentation

◆ columnCount()

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

The number of column the table has.

◆ data()

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

Return a data representing the table cell.

◆ operator=()

const CGramModel& ComSquare::Debugger::CGramModel::operator= ( const CGramModel )
delete

◆ rowCount()

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

The number of row the table has.

Member Data Documentation

◆ _ppu

ComSquare::PPU::PPU& ComSquare::Debugger::CGramModel::_ppu
private

The ppu to log the cgram.

◆ column

const int ComSquare::Debugger::CGramModel::column = 16

The number of columns.

◆ rows

const int ComSquare::Debugger::CGramModel::rows = 16

The number of rows.

◆ x

int ComSquare::Debugger::CGramModel::x

◆ y

int ComSquare::Debugger::CGramModel::y

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