qse  0.5.4
qsecolumn.h
Go to the documentation of this file.
1 #ifndef QSECOLUMN_H
2 #define QSECOLUMN_H
3 
4 #include <QObject>
5 #include <QString>
6 #include <QVector>
7 #include <QMutex>
8 
9 class QseScan;
10 
11 class QseColumn : public QObject
12 {
13  Q_OBJECT;
14 
15  public:
16  QseColumn(const QString nm);
17  ~QseColumn();
18 
19  QString name() const;
20 /* void setName(QString n); */
21 
22  int rowCount() const;
23  void setRowCount(int n);
24 
25  void clear();
26 
27  const double* data() const;
28  double data(int n) const;
29  void setData(int n, double v);
30  void appendData(double v);
31 
32  void addition(const QseColumn *col);
33  void subtraction(const QseColumn *col);
34  void multiplication(const QseColumn *col);
35  void division(const QseColumn *col);
36  void assignment(const QseColumn *col);
37 
38  void addition(const double val);
39  void subtraction(const double val);
40  void multiplication(const double val);
41  void division(const double val);
42  void assignment(const double val);
43 
44  private:
45  QString m_Name;
46  QVector<double> m_Data;
47  static QMutex m_Mutex;
48 };
49 
50 #endif
const double * data() const
Definition: qsecolumn.cpp:62
void addition(const QseColumn *col)
Definition: qsecolumn.cpp:86
static QMutex m_Mutex
Definition: qsecolumn.h:47
QString m_Name
Definition: qsecolumn.h:45
void appendData(double v)
Definition: qsecolumn.cpp:41
void subtraction(const QseColumn *col)
Definition: qsecolumn.cpp:100
QseColumn(const QString nm)
Definition: qsecolumn.cpp:10
void multiplication(const QseColumn *col)
Definition: qsecolumn.cpp:114
int rowCount() const
Definition: qsecolumn.cpp:48
void division(const QseColumn *col)
Definition: qsecolumn.cpp:128
void clear()
Definition: qsecolumn.cpp:33
void setData(int n, double v)
Definition: qsecolumn.cpp:79
void setRowCount(int n)
Definition: qsecolumn.cpp:55
QString name() const
Definition: qsecolumn.cpp:26
QVector< double > m_Data
Definition: qsecolumn.h:46
void assignment(const QseColumn *col)
Definition: qsecolumn.cpp:142