xrpld
Loading...
Searching...
No Matches
xrpl::directory Namespace Reference

Functions

std::uint64_t createRoot (ApplyView &view, Keylet const &directory, uint256 const &key, std::function< void(SLE::ref)> const &describe)
 Helper functions for managing low-level directory operations.
auto findPreviousPage (ApplyView &view, Keylet const &directory, SLE::ref start)
std::uint64_t insertKey (ApplyView &view, SLE::ref node, std::uint64_t page, bool preserveOrder, STVector256 &indexes, uint256 const &key)
std::optional< std::uint64_tinsertPage (ApplyView &view, std::uint64_t page, SLE::pointer node, std::uint64_t nextPage, SLE::ref next, uint256 const &key, Keylet const &directory, std::function< void(SLE::ref)> const &describe)

Function Documentation

◆ createRoot()

std::uint64_t xrpl::directory::createRoot ( ApplyView & view,
Keylet const & directory,
uint256 const & key,
std::function< void(SLE::ref)> const & describe )

Helper functions for managing low-level directory operations.

These are not part of the ApplyView interface.

Don't use them unless you really, really know what you're doing. Instead use dirAdd, dirInsert, etc.

Definition at line 30 of file ApplyView.cpp.

◆ findPreviousPage()

auto xrpl::directory::findPreviousPage ( ApplyView & view,
Keylet const & directory,
SLE::ref start )

Definition at line 49 of file ApplyView.cpp.

◆ insertKey()

std::uint64_t xrpl::directory::insertKey ( ApplyView & view,
SLE::ref node,
std::uint64_t page,
bool preserveOrder,
STVector256 & indexes,
uint256 const & key )

Definition at line 70 of file ApplyView.cpp.

◆ insertPage()

std::optional< std::uint64_t > xrpl::directory::insertPage ( ApplyView & view,
std::uint64_t page,
SLE::pointer node,
std::uint64_t nextPage,
SLE::ref next,
uint256 const & key,
Keylet const & directory,
std::function< void(SLE::ref)> const & describe )

Definition at line 105 of file ApplyView.cpp.