1 #ifndef VECTORPROTOTYPE_H
2 #define VECTORPROTOTYPE_H
4 #include "QDaqVector.h"
5 #include <QtCore/QObject>
6 #include <QtScript/QScriptable>
7 #include <QtScript/QScriptValue>
62 QScriptValue toArray()
const;
67 void push(
const QScriptValue& val);
78 QDaqVector clone()
const {
return thisVector()->clone(); }
81 QString toString()
const;
86 bool checkRange(
int offset,
int sz)
const;
bool equals(const QDaqVector &other)
Returns true if this Vector is equal to other.
The prototype for the Vector class.
A buffer for storing double numbers.
QScriptValue valueOf() const
Return the data stored by the object.
void pop()
Remove the last element.
void push(const QScriptValue &val)
Push a number, a Vector or a numeric Array at the end.
void resize(int n)
Resize to n elements keeping the first n.