20 #ifndef RIPPLE_PROTOCOL_STCURRENCY_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STCURRENCY_H_INCLUDED
23 #include <ripple/basics/CountedObject.h>
24 #include <ripple/protocol/SField.h>
25 #include <ripple/protocol/STBase.h>
26 #include <ripple/protocol/Serializer.h>
27 #include <ripple/protocol/UintTypes.h>
51 value() const noexcept;
78 copy(
std::
size_t n,
void* buf) const override;
80 move(
std::
size_t n,
void* buf) override;
82 friend class detail::STVar;
void add(Serializer &s) const override
bool isEquivalent(const STBase &t) const override
STCurrency currencyFromJson(SField const &name, Json::Value const &v)
bool isDefault() const override
std::string getText() const override
JSON (JavaScript Object Notation).
bool operator<(CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs)
static std::unique_ptr< STCurrency > construct(SerialIter &, SField const &name)
STBase * move(std::size_t n, void *buf) override
void setCurrency(Currency const ¤cy)
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Note, should be treated as flags that can be | and &.
A type which can be exported to a well known binary format.
bool operator!=(const STBase &t) const
SerializedTypeID getSType() const override
STBase * copy(std::size_t n, void *buf) const override
Currency const & value() const noexcept
bool operator==(const STBase &t) const
Currency const & currency() const
Json::Value getJson(JsonOptions) const override