rippled
Loading...
Searching...
No Matches
Functions
ripple::directory Namespace Reference

Functions

std::uint64_t createRoot (ApplyView &view, Keylet const &directory, uint256 const &key, std::function< void(std::shared_ptr< SLE > const &)> 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(std::shared_ptr< SLE > const &)> const &describe)
 

Function Documentation

◆ createRoot()

std::uint64_t ripple::directory::createRoot ( ApplyView view,
Keylet const &  directory,
uint256 const &  key,
std::function< void(std::shared_ptr< SLE > const &)> 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 14 of file ApplyView.cpp.

◆ findPreviousPage()

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

Definition at line 33 of file ApplyView.cpp.

◆ insertKey()

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

Definition at line 54 of file ApplyView.cpp.

◆ insertPage()

std::optional< std::uint64_t > ripple::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(std::shared_ptr< SLE > const &)> const &  describe 
)

Definition at line 90 of file ApplyView.cpp.