Platform.Data.Doublets C++
Loading...
Searching...
No Matches
RawLinkDataPart.h
Go to the documentation of this file.
2{
3 template <typename...>
5 template <std::integral TLinkAddress>
7 {
8 public:
9 constexpr static std::size_t SizeInBytes = sizeof(RawLinkDataPart<TLinkAddress>);
10
13
15 {
16 return (Source == other.Source) && (Target == other.Target);
17 }
18
19 public:
20 std::int32_t GetHashCode()
21 {
22 return Platform::Hashing::Hash(Source, Target);
23 }
24
26 {
27 return (Source == other.Source) && (Target == other.Target);
28 }
29
31 {
32 return !(this == other);
33 }
34 };
35} // namespace Platform::Data::Doublets::Memory::Split
36
37namespace std
38{
39 template <std::integral TLinkAddress>
40 struct hash<Platform::Data::Doublets::Memory::Split::RawLinkDataPart<TLinkAddress>>
41 {
43 {
44 return obj.GetHashCode();
45 }
46 };
47} // namespace std
Definition ExternalLinksRecursionlessSizeBalancedTreeMethodsBase.h:2
Definition RawLinkDataPart.h:38
std::int32_t GetHashCode()
Definition RawLinkDataPart.h:20
bool operator==(RawLinkDataPart< TLinkAddress > other)
Definition RawLinkDataPart.h:25
bool operator!=(RawLinkDataPart< TLinkAddress > other)
Definition RawLinkDataPart.h:30
bool operator=(RawLinkDataPart< TLinkAddress > other)
Definition RawLinkDataPart.h:14
std::size_t operator()(const Platform::Data::Doublets::Memory::Split::RawLinkDataPart< TLinkAddress > &obj) const
Definition RawLinkDataPart.h:42