chore: Rename two files from Directory* to Dir*: (#5058)

The names of the files should reflect the name of the Dir class.

Co-authored-by: Zack Brunson <Zshooter@gmail.com>
Co-authored-by: Ed Hennis <ed@ripple.com>
This commit is contained in:
Scott Schurr
2024-07-25 11:50:27 -07:00
committed by GitHub
parent ad14d09a2b
commit 20707fac4a
8 changed files with 16 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
#include <test/jtx.h>
#include <xrpld/app/tx/applySteps.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/TxFlags.h>

View File

@@ -18,7 +18,7 @@
//==============================================================================
#include <test/jtx.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpld/rpc/detail/RPCHelpers.h>
#include <xrpl/basics/chrono.h>
#include <xrpl/protocol/Feature.h>

View File

@@ -17,7 +17,6 @@
#include <test/jtx.h>
#include <xrpld/ledger/BookDirs.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Sandbox.h>
#include <xrpl/basics/random.h>
#include <xrpl/protocol/Feature.h>

View File

@@ -23,7 +23,6 @@
#include <xrpld/app/paths/detail/FlatSets.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/app/tx/detail/OfferStream.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>

View File

@@ -19,7 +19,6 @@
#include <xrpld/app/tx/detail/NFTokenBurn.h>
#include <xrpld/app/tx/detail/NFTokenUtils.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/View.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/Protocol.h>

View File

@@ -18,7 +18,7 @@
//==============================================================================
#include <xrpld/app/tx/detail/NFTokenUtils.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpld/ledger/View.h>
#include <xrpl/basics/algorithm.h>
#include <xrpl/protocol/Feature.h>

View File

@@ -25,6 +25,18 @@
namespace ripple {
/** A class that simplifies iterating ledger directory pages
The Dir class provides a forward iterator for walking through
the uint256 values contained in ledger directories.
The Dir class also allows accelerated directory walking by
stepping directly from one page to the next using the next_page()
member function.
As of July 2024, the Dir class is only being used with NFTokenOffer
directories and for unit tests.
*/
class Dir
{
private:

View File

@@ -17,7 +17,7 @@
*/
//==============================================================================
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
namespace ripple {