The Abstractkey class is provide general hash function for all keys of Heart library. This class using for generate a hash code of any keyObject.
More...
#include <abstractkey.h>
|
| AbstractKey ()=default |
|
virtual | ~AbstractKey ()=default |
|
virtual unsigned int | hash () const =0 |
| hash This method must be calc hash int32 code of source object.
|
|
virtual bool | equal (const AbstractKey *other) const =0 |
| equal This method must be make compare between current object and other.
|
|
virtual QString | toString () const =0 |
| toString This method should be return the string implementation of this key.
|
|
virtual bool | isValid () const =0 |
| isValid This method check this key object to valid.
|
|
The Abstractkey class is provide general hash function for all keys of Heart library. This class using for generate a hash code of any keyObject.
Definition at line 18 of file abstractkey.h.
◆ AbstractKey()
QH::AbstractKey::AbstractKey |
( |
| ) |
|
|
default |
◆ ~AbstractKey()
virtual QH::AbstractKey::~AbstractKey |
( |
| ) |
|
|
virtualdefault |
◆ equal()
virtual bool QH::AbstractKey::equal |
( |
const AbstractKey * |
other | ) |
const |
|
pure virtual |
equal This method must be make compare between current object and other.
- Parameters
-
other | This is other comparable object. |
- Returns
- True if objects is equals.
Implemented in QH::DbAddressKey.
◆ hash()
virtual unsigned int QH::AbstractKey::hash |
( |
| ) |
const |
|
pure virtual |
hash This method must be calc hash int32 code of source object.
- Returns
- Hash 32 bits.
Implemented in QH::DbAddressKey.
◆ isValid()
virtual bool QH::AbstractKey::isValid |
( |
| ) |
const |
|
pure virtual |
isValid This method check this key object to valid.
- Returns
- True if key is valid.
Implemented in QH::DbAddressKey.
◆ toString()
virtual QString QH::AbstractKey::toString |
( |
| ) |
const |
|
pure virtual |
toString This method should be return the string implementation of this key.
- Returns
- String value.
Implemented in QH::DbAddressKey.
The documentation for this class was generated from the following file: