Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
abstractkey.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018-2025 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
12
namespace
QH
{
13
18
class
HEARTSHARED_EXPORT
AbstractKey
19
{
20
public
:
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
QH::AbstractKey::equal
virtual bool equal(const AbstractKey *other) const =0
equal This method must be make compare between current object and other.
QH::AbstractKey::~AbstractKey
virtual ~AbstractKey()=default
QH::AbstractKey::isValid
virtual bool isValid() const =0
isValid This method check this key object to valid.
QH::AbstractKey::toString
virtual QString toString() const =0
toString This method should be return the string implementation of this key.
QH::AbstractKey::AbstractKey
AbstractKey()=default
QH::AbstractKey::hash
virtual unsigned int hash() const =0
hash This method must be calc hash int32 code of source object.
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
src
public
abstractkey.h
Generated by
1.18.0