Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
QH::AbstractKey Class Referenceabstract

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>

Inheritance diagram for QH::AbstractKey:
Inheritance graph
Collaboration diagram for QH::AbstractKey:
Collaboration graph

Public Member Functions

 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AbstractKey()

QH::AbstractKey::AbstractKey ( )
default

◆ ~AbstractKey()

virtual QH::AbstractKey::~AbstractKey ( )
virtualdefault

Member Function Documentation

◆ 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
otherThis 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: