|
rippled
|

Public Member Functions | |
| OrderBookDB (Application &app) | |
| void | setup (std::shared_ptr< ReadView const > const &ledger) |
| void | update (std::shared_ptr< ReadView const > const &ledger) |
| void | addOrderBook (Book const &) |
| std::vector< Book > | getBooksByTakerPays (Issue const &) |
| int | getBookSize (Issue const &) |
| bool | isBookToXRP (Issue const &) |
| BookListeners::pointer | getBookListeners (Book const &) |
| BookListeners::pointer | makeBookListeners (Book const &) |
| void | processTxn (std::shared_ptr< ReadView const > const &ledger, const AcceptedLedgerTx &alTx, Json::Value const &jvObj) |
Private Types | |
| using | BookToListenersMap = hash_map< Book, BookListeners::pointer > |
Private Attributes | |
| Application & | app_ |
| hardened_hash_map< Issue, hardened_hash_set< Issue > > | allBooks_ |
| hash_set< Issue > | xrpBooks_ |
| std::recursive_mutex | mLock |
| BookToListenersMap | mListeners |
| std::atomic< std::uint32_t > | seq_ |
| const beast::Journal | j_ |
Definition at line 30 of file OrderBookDB.h.
|
private |
Definition at line 79 of file OrderBookDB.h.
|
explicit |
Definition at line 31 of file OrderBookDB.cpp.
| void ripple::OrderBookDB::setup | ( | std::shared_ptr< ReadView const > const & | ledger | ) |
Definition at line 37 of file OrderBookDB.cpp.
| void ripple::OrderBookDB::update | ( | std::shared_ptr< ReadView const > const & | ledger | ) |
Definition at line 75 of file OrderBookDB.cpp.
| void ripple::OrderBookDB::addOrderBook | ( | Book const & | book | ) |
Definition at line 152 of file OrderBookDB.cpp.
| std::vector< Book > ripple::OrderBookDB::getBooksByTakerPays | ( | Issue const & | issue | ) |
Definition at line 166 of file OrderBookDB.cpp.
| int ripple::OrderBookDB::getBookSize | ( | Issue const & | issue | ) |
Definition at line 186 of file OrderBookDB.cpp.
| bool ripple::OrderBookDB::isBookToXRP | ( | Issue const & | issue | ) |
Definition at line 195 of file OrderBookDB.cpp.
| BookListeners::pointer ripple::OrderBookDB::getBookListeners | ( | Book const & | book | ) |
Definition at line 219 of file OrderBookDB.cpp.
| BookListeners::pointer ripple::OrderBookDB::makeBookListeners | ( | Book const & | book | ) |
Definition at line 202 of file OrderBookDB.cpp.
| void ripple::OrderBookDB::processTxn | ( | std::shared_ptr< ReadView const > const & | ledger, |
| const AcceptedLedgerTx & | alTx, | ||
| Json::Value const & | jvObj | ||
| ) |
Definition at line 234 of file OrderBookDB.cpp.
|
private |
Definition at line 69 of file OrderBookDB.h.
|
private |
Definition at line 72 of file OrderBookDB.h.
Definition at line 75 of file OrderBookDB.h.
|
private |
Definition at line 77 of file OrderBookDB.h.
|
private |
Definition at line 81 of file OrderBookDB.h.
|
private |
Definition at line 83 of file OrderBookDB.h.
|
private |
Definition at line 85 of file OrderBookDB.h.
1.8.17