20 #ifndef RIPPLE_SHAMAP_SHAMAPLEAFNODE_H_INCLUDED
21 #define RIPPLE_SHAMAP_SHAMAPLEAFNODE_H_INCLUDED
23 #include <ripple/shamap/SHAMapItem.h>
24 #include <ripple/shamap/SHAMapNodeID.h>
25 #include <ripple/shamap/SHAMapTreeNode.h>
61 invariants(
bool is_root =
false) const final override;
std::uint32_t cowid() const
Returns the SHAMap that owns this node.
bool isLeaf() const final override
Determines if this is a leaf node.
SHAMapLeafNode(std::shared_ptr< SHAMapItem const > item, std::uint32_t cowid)
std::string getString(SHAMapNodeID const &) const final override
Identifies a node inside a SHAMap.
void invariants(bool is_root=false) const final override
std::shared_ptr< SHAMapItem const > item_
bool isInner() const final override
Determines if this is an inner node.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< SHAMapItem const > const & peekItem() const
bool setItem(std::shared_ptr< SHAMapItem const > i)
Set the item that this node points to and update the node's hash.
SHAMapLeafNode & operator=(const SHAMapLeafNode &)=delete