SpikeStream Application Library  0.2
TruthTableModel.h
Go to the documentation of this file.
00001 #ifndef TRUTHTABLEMODEL_H
00002 #define TRUTHTABLEMODEL_H
00003 
00004 //Qt includes
00005 #include <QAbstractTableModel>
00006 #include <QList>
00007 
00008 namespace spikestream {
00009 
00011     class TruthTableModel : public QAbstractTableModel {
00012                 Q_OBJECT
00013 
00014                 public:
00015                         TruthTableModel();
00016                         ~TruthTableModel();
00017                         int columnCount(const QModelIndex& parent = QModelIndex()) const;
00018                         QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const;
00019                         QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
00020                         int rowCount(const QModelIndex& parent = QModelIndex()) const;
00021                         void setNeuronID(unsigned int neuronID);
00022 
00023                 private slots:
00024 
00025 
00026                 private:
00027                         //====================  VARIABLES  ====================
00030                         QList< QList<unsigned int> > dataList;
00031 
00033                         QList<unsigned int> headerList;
00034 
00035                         //=====================  METHODS  ======================
00036                         void clearModelData();
00037     };
00038 
00039 }
00040 
00041 #endif//TRUTHTABLEMODEL_H
00042 
00043 
 All Classes Files Functions Variables Typedefs Friends Defines