Heart
1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
dbaddresskey.cpp
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
9
#include "
dbaddresskey.h
"
10
namespace
QH
{
11
12
DbAddressKey::DbAddressKey
() {
13
14
}
15
16
DbAddressKey::DbAddressKey
(
const
DbAddress
&address):
17
DbAddress
(address) {
18
19
}
20
21
DbAddressKey::DbAddressKey
(
const
QString &
table
,
const
QVariant &value):
22
DbAddress
(
table
, value) {
23
24
}
25
26
unsigned
int
DbAddressKey::hash
()
const
{
27
return
qHash
(*
static_cast<
const
DbAddress
*
>
(
this
));
28
}
29
30
bool
DbAddressKey::equal
(
const
AbstractKey
*other)
const
{
31
auto
otherObject =
dynamic_cast<
const
DbAddressKey
*
>
(other);
32
33
if
(!otherObject)
34
return
false
;
35
36
return
operator==
(*
static_cast<
const
DbAddress
*
>
(
this
), *otherObject);
37
}
38
39
bool
DbAddressKey::isValid
()
const
{
40
return
DbAddress::isValid
();
41
}
42
43
QString
DbAddressKey::toString
()
const
{
44
return
DbAddress::toString
();
45
}
46
}
QH::AbstractKey::AbstractKey
AbstractKey()=default
QH::DbAddressKey::toString
QString toString() const override
toString This method should be return the string implementation of this key.
Definition
dbaddresskey.cpp:43
QH::DbAddressKey::hash
unsigned int hash() const override
hash This method must be calc hash int32 code of source object.
Definition
dbaddresskey.cpp:26
QH::DbAddressKey::DbAddressKey
DbAddressKey()
Definition
dbaddresskey.cpp:12
QH::DbAddressKey::equal
bool equal(const AbstractKey *other) const override
equal This method must be make compare between current object and other.
Definition
dbaddresskey.cpp:30
QH::DbAddressKey::isValid
bool isValid() const override
isValid This method check this key object to valid.
Definition
dbaddresskey.cpp:39
QH::DbAddress::toString
QString toString() const
toString This method return a string implementation fo this object.
Definition
dbaddress.cpp:45
QH::DbAddress::DbAddress
DbAddress()=default
QH::DbAddress::operator==
friend bool operator==(const DbAddress &left, const DbAddress &other)
Definition
dbaddress.cpp:27
QH::DbAddress::isValid
bool isValid() const
isValid This method check object for valid.
Definition
dbaddress.cpp:54
QH::DbAddress::table
const QString & table() const
table This method return table name.
Definition
dbaddress.cpp:58
dbaddresskey.h
QH
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition
heart.cpp:13
QH::qHash
uint qHash(NodeCoonectionStatus status)
qHash - Simple hash function of NodeCoonectionStatus
Definition
abstractnodeinfo.cpp:269
src
public
dbaddresskey.cpp
Generated by
1.18.0