23#ifndef BCEPAYOFFTABLEMODEL_HPP
24#define BCEPAYOFFTABLEMODEL_HPP
28#include <QAbstractTableModel>
31#include "bcetablemodel.hpp"
57 QVariant
data(
const QModelIndex & index,
58 int role)
const Q_DECL_OVERRIDE;
64 Qt::Orientation orientation,
65 int role)
const Q_DECL_OVERRIDE;
70 bool setData(
const QModelIndex & index,
const QVariant & value,
int role);
73 int rowCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE {
78 int columnCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE {
const vector< int > & getNumActions() const
Returns a vector of the numbers of actions.
Definition: bceabstractgame.hpp:249
The base class for games of incomplete information.
Definition: bcegame.hpp:40
Derived class for payoff table models.
Definition: bcepayofftablemodel.hpp:43
bool setData(const QModelIndex &index, const QVariant &value, int role)
Sets data.
Definition: bcepayofftablemodel.cpp:79
BCEPayoffTableModel(BCEGame *_game, int _state)
Constructor.
Definition: bcepayofftablemodel.hpp:48
int columnCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of column player actions.
Definition: bcepayofftablemodel.hpp:78
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE
Returns formatted header data.
Definition: bcepayofftablemodel.cpp:58
int rowCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of row player actions.
Definition: bcepayofftablemodel.hpp:73
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE
Returns formatted data.
Definition: bcepayofftablemodel.cpp:25
Table models for BCEViewer.
Definition: bcetablemodel.hpp:40
BCEGame * game
Pointer to the associated game.
Definition: bcetablemodel.hpp:73