All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | |
int | hash () const |
HashNumericalKey () | |
HashNumericalKey (AbstractNumericalKey *key) | |
void | operator= (const HashNumericalKey &o) |
bool | operator== (const HashNumericalKey &o) const |
QGpCoreTools::HashNumericalKey::HashNumericalKey | ( | ) | [inline] |
{_key=0;}
QGpCoreTools::HashNumericalKey::HashNumericalKey | ( | AbstractNumericalKey * | key | ) | [inline] |
{_key=key;}
int QGpCoreTools::HashNumericalKey::hash | ( | ) | const [inline] |
Referenced by QGpCoreTools::qHash().
{return _key ? _key->hash() : 0;}
void QGpCoreTools::HashNumericalKey::operator= | ( | const HashNumericalKey & | o | ) | [inline] |
{_key=o._key;}
bool QGpCoreTools::HashNumericalKey::operator== | ( | const HashNumericalKey & | o | ) | const [inline] |
References QGpCoreTools::AbstractNumericalKey::id().
{ if(_key && o._key) { if(_key->id()==o._key->id()) { return *_key==*o._key; } else { return false; } } else { return _key==o._key; } }