|
SpikeStream Application Library
0.2
|
#include <TruthTableModel.h>
Public Member Functions | |
| TruthTableModel () | |
| ~TruthTableModel () | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| void | setNeuronID (unsigned int neuronID) |
Model used for the display of a truth table associated with a particular weightless neuron.
Definition at line 11 of file TruthTableModel.h.
Constructor
Definition at line 16 of file TruthTableModel.cpp.
Destructor
Definition at line 21 of file TruthTableModel.cpp.
| int TruthTableModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of columns in the model
Definition at line 30 of file TruthTableModel.cpp.
| QVariant TruthTableModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Inherited from QAbstractTableModel. Returns the data at the specified model index ready to be displayed in the way requested
Definition at line 37 of file TruthTableModel.cpp.
| QVariant TruthTableModel::headerData | ( | int | section, |
| Qt::Orientation | orientation, | ||
| int | role = Qt::DisplayRole |
||
| ) | const |
Inherited from QAbstractTableModel. Returns the header data
Definition at line 60 of file TruthTableModel.cpp.
| int TruthTableModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Inherited from QAbstractTableModel. Returns the number of rows in the model.
Definition at line 77 of file TruthTableModel.cpp.
| void TruthTableModel::setNeuronID | ( | unsigned int | neuronID | ) |
Sets the id of the neuron whose truth table is being displayed. Loads up the data from the neuron in a way that is easy to access for display.
Definition at line 84 of file TruthTableModel.cpp.