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) |
MetaArrayInteger () | |
MetaArrayInteger (const MetaArrayInteger &o) | |
virtual bool | setData (int subId, const QString &index, const QVariant &val) |
virtual QString | toString (const QString &index) const |
GeopsyCore::MetaArrayInteger::MetaArrayInteger | ( | ) | [inline] |
: MetaArray<int>() {}
GeopsyCore::MetaArrayInteger::MetaArrayInteger | ( | const MetaArrayInteger & | o | ) | [inline] |
: MetaArray<int>(o) {}
int GeopsyCore::MetaArrayInteger::compare | ( | int | subId, |
const QString & | index, | ||
const MetaData * | o | ||
) | const [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< int >::value().
{ Q_UNUSED(valueIndex); int v1=value(dataIndex.toInt()); int v2=reinterpret_cast<const MetaArrayInteger *>(o)->value(dataIndex.toInt()); if(v1<v2) return -1; else if(v1>v2) return 1; else return 0; }
bool GeopsyCore::MetaArrayInteger::fromString | ( | const QString & | index, |
QString | string | ||
) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< int >::count(), and GeopsyCore::MetaArray< int >::setValue().
bool GeopsyCore::MetaArrayInteger::setData | ( | int | subId, |
const QString & | index, | ||
const QVariant & | val | ||
) | [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< int >::count(), and GeopsyCore::MetaArray< int >::setValue().
QString GeopsyCore::MetaArrayInteger::toString | ( | const QString & | index | ) | const [virtual] |
Reimplemented from GeopsyCore::MetaData.
References GeopsyCore::MetaArray< int >::count(), and GeopsyCore::MetaArray< int >::value().