Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
abstractkey.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8#ifndef ABSTRACTKEY_H
9#define ABSTRACTKEY_H
10#include "heart_global.h"
11
12namespace QH {
13
19{
20public:
21 AbstractKey() = default;
22
23 virtual ~AbstractKey() = default;
24
29 virtual unsigned int hash() const = 0;
30
36 virtual bool equal(const AbstractKey* other) const = 0;
37
42 virtual QString toString() const = 0;
43
48 virtual bool isValid() const = 0;
49};
50
51
52}
53#endif // ABSTRACTKEY_H
The Abstractkey class is provide general hash function for all keys of Heart library....
Definition abstractkey.h:19
virtual bool equal(const AbstractKey *other) const =0
equal This method must be make compare between current object and other.
virtual ~AbstractKey()=default
virtual bool isValid() const =0
isValid This method check this key object to valid.
virtual QString toString() const =0
toString This method should be return the string implementation of this key.
AbstractKey()=default
virtual unsigned int hash() const =0
hash This method must be calc hash int32 code of source object.
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13