Skip to content

Commit

Permalink
[chore] Rename two files from Directory* to Dir*:
Browse files Browse the repository at this point in the history
The names of the files should reflect the name of the Dir class.
  • Loading branch information
scottschurr committed Jul 9, 2024
1 parent 0f32109 commit 74d4d15
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/test/app/Escrow_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/test/app/PayChan_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion src/test/ledger/Directory_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion src/xrpld/app/paths/detail/BookStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion src/xrpld/app/tx/detail/NFTokenBurn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/tx/detail/NFTokenUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
12 changes: 12 additions & 0 deletions src/xrpld/ledger/Directory.h → src/xrpld/ledger/Dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
//==============================================================================

#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>

namespace ripple {

Expand Down

0 comments on commit 74d4d15

Please sign in to comment.