3#include <xrpl/shamap/SHAMapItem.h>
4#include <xrpl/shamap/SHAMapTreeNode.h>
13 boost::intrusive_ptr<SHAMapItem const>
item_;
18 boost::intrusive_ptr<SHAMapItem const> item,
boost::intrusive_ptr< SHAMapItem const > item_
SHAMapLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)
SHAMapLeafNode(SHAMapLeafNode const &)=delete
bool isInner() const final
Determines if this is an inner node.
void invariants(bool isRoot=false) const final
bool setItem(boost::intrusive_ptr< SHAMapItem const > i)
Set the item that this node points to and update the node's hash.
bool isLeaf() const final
Determines if this is a leaf node.
SHAMapLeafNode & operator=(SHAMapLeafNode const &)=delete
std::string getString(SHAMapNodeID const &) const final
boost::intrusive_ptr< SHAMapItem const > const & peekItem() const
Identifies a node inside a SHAMap.
SHAMapTreeNode(std::uint32_t cowid) noexcept
Construct a node.
std::uint32_t cowid() const
Returns the SHAMap that owns this node.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.