Identifies a node inside a SHAMap.
More...
#include <SHAMapNodeID.h>
Identifies a node inside a SHAMap.
Definition at line 19 of file SHAMapNodeID.h.
◆ SHAMapNodeID() [1/3]
| xrpl::SHAMapNodeID::SHAMapNodeID |
( |
| ) |
|
|
default |
◆ SHAMapNodeID() [2/3]
| xrpl::SHAMapNodeID::SHAMapNodeID |
( |
SHAMapNodeID const & | other | ) |
|
|
default |
◆ SHAMapNodeID() [3/3]
| xrpl::SHAMapNodeID::SHAMapNodeID |
( |
unsigned int | depth, |
|
|
uint256 const & | hash ) |
◆ operator=()
◆ isRoot()
| bool xrpl::SHAMapNodeID::isRoot |
( |
| ) |
const |
|
nodiscard |
◆ getRawString()
◆ getDepth()
| unsigned int xrpl::SHAMapNodeID::getDepth |
( |
| ) |
const |
|
nodiscard |
◆ getNodeID()
| uint256 const & xrpl::SHAMapNodeID::getNodeID |
( |
| ) |
const |
|
nodiscard |
◆ getChildNodeID()
| SHAMapNodeID xrpl::SHAMapNodeID::getChildNodeID |
( |
unsigned int | m | ) |
const |
|
nodiscard |
◆ createID()
Create a SHAMapNodeID of a node with the depth of the node and the key of a leaf.
- Parameters
-
| depth | the depth of the node |
| key | the key of a leaf |
- Returns
- SHAMapNodeID of the node
Definition at line 130 of file SHAMapNodeID.cpp.
◆ operator<=>()
Comparison operators.
<, >, <= and >= are synthesized from the spaceship. It is written out rather than defaulted because the ordering is by depth first, and the members are not declared in that order.
Definition at line 76 of file SHAMapNodeID.h.
◆ operator==()
| bool xrpl::SHAMapNodeID::operator== |
( |
SHAMapNodeID const & | n | ) |
const |
Equality, which the spaceship above does not provide.
Only a defaulted operator<=> implicitly declares a defaulted operator==; the one above is user-provided, so == has to be written. It cannot be defaulted either, because a defaulted == would also compare the CountedObject base, which is not equality comparable.
Definition at line 91 of file SHAMapNodeID.h.
◆ getCounter()
|
|
staticprivatenoexceptinherited |
◆ id_
◆ depth_
| unsigned int xrpl::SHAMapNodeID::depth_ = 0 |
|
private |
◆ Object