All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpCoreTools::HashNumericalKey Class Reference

List of all members.

Public Member Functions

int hash () const
 HashNumericalKey ()
 HashNumericalKey (AbstractNumericalKey *key)
void operator= (const HashNumericalKey &o)
bool operator== (const HashNumericalKey &o) const

Constructor & Destructor Documentation

{_key=0;}
{_key=key;}

Member Function Documentation

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;
  }
}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines