#include "util/Assert.hpp"
#include <boost/container/flat_set.hpp>
#include <xrpl/basics/Blob.h>
#include <xrpl/basics/Log.h>
#include <xrpl/basics/StringUtilities.h>
#include <xrpl/basics/base_uint.h>
#include <xrpl/protocol/AccountID.h>
#include <xrpl/protocol/SField.h>
#include <xrpl/protocol/STAccount.h>
#include <xrpl/protocol/STLedgerEntry.h>
#include <xrpl/protocol/Serializer.h>
#include <xrpl/protocol/TxMeta.h>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
Go to the source code of this file.
|
template<typename T > |
bool | isOffer (T const &object) |
| Check whether the supplied object is an offer.
|
|
template<typename T > |
bool | isOfferHex (T const &object) |
| Check whether the supplied hex represents an offer object.
|
|
template<typename T > |
bool | isDirNode (T const &object) |
| Check whether the supplied object is a dir node.
|
|
template<typename T , typename R > |
bool | isBookDir (T const &key, R const &object) |
| Check whether the supplied object is a book dir.
|
|
template<typename T > |
ripple::uint256 | getBook (T const &offer) |
| Get the book out of an offer object.
|
|
template<typename T > |
ripple::uint256 | getBookBase (T const &key) |
| Get the book base.
|
|
std::string | uint256ToString (ripple::uint256 const &input) |
| Stringify a ripple::uint256.
|
|
|
static constexpr std::uint32_t | kRIPPLE_EPOCH_START = 946684800 |
| The ripple epoch start timestamp. Midnight on 1st January 2000.
|
|
◆ getBook()
template<typename T >
ripple::uint256 getBook |
( |
T const & | offer | ) |
|
|
inline |
Get the book out of an offer object.
- Parameters
-
offer | The offer to get the book for |
- Returns
- Book as ripple::uint256
◆ getBookBase()
template<typename T >
ripple::uint256 getBookBase |
( |
T const & | key | ) |
|
|
inline |
Get the book base.
- Parameters
-
key | The key to get the book base out of |
- Returns
- Book base as ripple::uint256
◆ isBookDir()
template<typename T , typename R >
bool isBookDir |
( |
T const & | key, |
|
|
R const & | object ) |
|
inline |
Check whether the supplied object is a book dir.
- Parameters
-
key | The key into the object |
object | The object to check |
- Returns
- true if the object is a book dir; false otherwise
◆ isDirNode()
template<typename T >
bool isDirNode |
( |
T const & | object | ) |
|
|
inline |
Check whether the supplied object is a dir node.
- Parameters
-
object | The object to check |
- Returns
- true if the object is a dir node; false otherwise
◆ isOffer()
template<typename T >
bool isOffer |
( |
T const & | object | ) |
|
|
inline |
Check whether the supplied object is an offer.
- Parameters
-
object | The object to check |
- Returns
- true if the object is an offer; false otherwise
◆ isOfferHex()
template<typename T >
bool isOfferHex |
( |
T const & | object | ) |
|
|
inline |
Check whether the supplied hex represents an offer object.
- Parameters
-
object | The object to check |
- Returns
- true if the object is an offer; false otherwise
◆ uint256ToString()
std::string uint256ToString |
( |
ripple::uint256 const & | input | ) |
|
|
inline |
Stringify a ripple::uint256.
- Parameters
-
- Returns
- The input value as a string