All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <MetaData.h>
Public Member Functions | |
| virtual int | compare (int subId, const QString &index, const MetaData *o) const |
| virtual bool | fromString (const QString &index, QString string) |
| MetaArrayDouble () | |
| MetaArrayDouble (const MetaArrayDouble &o) | |
| virtual bool | setData (int subId, const QString &index, const QVariant &val) |
| virtual QString | toString (const QString &index) const |
| GeopsyCore::MetaArrayDouble::MetaArrayDouble | ( | ) | [inline] |
: MetaArray<double>() {}
| GeopsyCore::MetaArrayDouble::MetaArrayDouble | ( | const MetaArrayDouble & | o | ) | [inline] |
: MetaArray<double>(o) {}
| int GeopsyCore::MetaArrayDouble::compare | ( | int | subId, |
| const QString & | index, | ||
| const MetaData * | o | ||
| ) | const [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< double >::value().
{
Q_UNUSED(valueIndex);
double v1=value(dataIndex.toInt());
double v2=reinterpret_cast<const MetaArrayDouble *>(o)->value(dataIndex.toInt());
if(v1<v2) return -1;
else if(v1>v2) return 1;
else return 0;
}
| bool GeopsyCore::MetaArrayDouble::fromString | ( | const QString & | index, |
| QString | string | ||
| ) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< double >::count(), and GeopsyCore::MetaArray< double >::setValue().
| bool GeopsyCore::MetaArrayDouble::setData | ( | int | subId, |
| const QString & | index, | ||
| const QVariant & | val | ||
| ) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< double >::count(), and GeopsyCore::MetaArray< double >::setValue().
| QString GeopsyCore::MetaArrayDouble::toString | ( | const QString & | index | ) | const [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< double >::count(), and GeopsyCore::MetaArray< double >::value().