xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
tx
paths
BookTip.h
1
#pragma once
2
3
#include <xrpl/basics/base_uint.h>
4
#include <xrpl/beast/utility/Journal.h>
5
#include <xrpl/ledger/ApplyView.h>
6
#include <xrpl/protocol/Book.h>
7
#include <xrpl/protocol/Quality.h>
8
#include <xrpl/protocol/STLedgerEntry.h>
9
10
namespace
xrpl
{
11
12
class
Logs
;
13
19
class
BookTip
20
{
21
private
:
22
ApplyView
&
view_
;
23
bool
valid_
{
false
};
24
UInt256
book_
;
25
UInt256
end_
;
26
UInt256
dir_
;
27
UInt256
index_
;
28
SLE::pointer
entry_
;
29
Quality
quality_
{};
30
31
public
:
35
BookTip
(
ApplyView
& view,
Book
const
& book);
36
37
[[nodiscard]]
UInt256
const
&
38
dir
() const noexcept
39
{
40
return
dir_
;
41
}
42
43
[[nodiscard]]
UInt256
const
&
44
index
() const noexcept
45
{
46
return
index_
;
47
}
48
49
[[nodiscard]]
Quality
const
&
50
quality
() const noexcept
51
{
52
return
quality_
;
53
}
54
55
[[nodiscard]]
SLE::pointer
const
&
56
entry
() const noexcept
57
{
58
return
entry_
;
59
}
60
66
bool
67
step
(
beast::Journal
j);
68
};
69
70
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
xrpl::ApplyView
Writeable view to a ledger, for applying a transaction.
Definition
ApplyView.h:141
xrpl::BookTip::BookTip
BookTip(ApplyView &view, Book const &book)
Create the iterator.
Definition
BookTip.cpp:13
xrpl::BookTip::step
bool step(beast::Journal j)
Erases the current offer and advance to the next offer.
Definition
BookTip.cpp:19
xrpl::BookTip::book_
UInt256 book_
Definition
BookTip.h:24
xrpl::BookTip::view_
ApplyView & view_
Definition
BookTip.h:22
xrpl::BookTip::dir
UInt256 const & dir() const noexcept
Definition
BookTip.h:38
xrpl::BookTip::entry_
SLE::pointer entry_
Definition
BookTip.h:28
xrpl::BookTip::valid_
bool valid_
Definition
BookTip.h:23
xrpl::BookTip::quality_
Quality quality_
Definition
BookTip.h:29
xrpl::BookTip::entry
SLE::pointer const & entry() const noexcept
Definition
BookTip.h:56
xrpl::BookTip::quality
Quality const & quality() const noexcept
Definition
BookTip.h:50
xrpl::BookTip::dir_
UInt256 dir_
Definition
BookTip.h:26
xrpl::BookTip::index_
UInt256 index_
Definition
BookTip.h:27
xrpl::BookTip::index
UInt256 const & index() const noexcept
Definition
BookTip.h:44
xrpl::BookTip::end_
UInt256 end_
Definition
BookTip.h:25
xrpl::Book
Specifies an order book.
Definition
Book.h:28
xrpl::Logs
Manages partitions for logging.
Definition
Log.h:23
xrpl::Quality
Represents the logical ratio of output currency to input currency.
Definition
Quality.h:90
xrpl::STLedgerEntry::pointer
std::shared_ptr< STLedgerEntry > pointer
Definition
STLedgerEntry.h:34
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::UInt256
BaseUInt< 256 > UInt256
Definition
base_uint.h:580
Generated by
1.17.0