Platform.Data.Doublets C++
Loading...
Searching...
No Matches
RawLinkIndexPart.h
Go to the documentation of this file.
2{
3 template <typename...>
5
6 template <std::integral TLinkAddress>
8 {
9 public:
10 inline static const std::uint64_t SizeInBytes = sizeof(RawLinkIndexPart<TLinkAddress>);
11
20
22 {
23 return RootAsSource == other.RootAsSource && LeftAsSource == other.LeftAsSource &&
24 RightAsSource == other.RightAsSource && SizeAsSource == other.SizeAsSource &&
25 RootAsTarget == other.RootAsTarget && LeftAsTarget == other.LeftAsTarget &&
26 RightAsTarget == other.RightAsTarget && SizeAsTarget == other.SizeAsTarget;
27 }
28
30 {
31 return !(this == other);
32 }
33 };
34} // namespace Platform::Data::Doublets::Memory::Split
35
36namespace std
37{
38 template <std::integral TLinkAddress>
39 struct hash<Platform::Data::Doublets::Memory::Split::RawLinkIndexPart<TLinkAddress>>
40 {
42 {
43 return Platform::Hashing::Hash(obj.RootAsSource, obj.LeftAsSource, obj.RightAsSource, obj.SizeAsSource,
44 obj.RootAsTarget, obj.LeftAsTarget, obj.RightAsTarget, obj.SizeAsTarget);
45 }
46 };
47} // namespace std
Definition ExternalLinksRecursionlessSizeBalancedTreeMethodsBase.h:2
Definition RawLinkDataPart.h:38
bool operator==(RawLinkIndexPart< TLinkAddress > other)
Definition RawLinkIndexPart.h:21
bool operator!=(RawLinkIndexPart< TLinkAddress > other)
Definition RawLinkIndexPart.h:29
std::size_t operator()(const Platform::Data::Doublets::Memory::Split::RawLinkIndexPart< TLinkAddress > &obj) const
Definition RawLinkIndexPart.h:41