20 #ifndef RIPPLE_PROTOCOL_STISSUE_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STISSUE_H_INCLUDED
23 #include <ripple/basics/CountedObject.h>
24 #include <ripple/protocol/Issue.h>
25 #include <ripple/protocol/SField.h>
26 #include <ripple/protocol/STBase.h>
27 #include <ripple/protocol/Serializer.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;
127 return lhs.
issue() == rhs;
133 return lhs.
issue() < rhs;
void add(Serializer &s) const override
Issue const & issue() const
A currency issued by an account.
STBase * copy(std::size_t n, void *buf) const override
SerializedTypeID getSType() const override
Json::Value getJson(JsonOptions) const override
JSON (JavaScript Object Notation).
bool operator<(CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs)
bool isEquivalent(const STBase &t) const override
Issue issueFromJson(Json::Value const &v)
Issue const & value() const noexcept
static std::unique_ptr< STIssue > construct(SerialIter &, SField const &name)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
A type which can be exported to a well known binary format.
bool operator!=(const STBase &t) const
void setIssue(Issue const &issue)
Issue const & xrpIssue()
Returns an asset specifier that represents XRP.
bool operator==(const STBase &t) const
std::string getText() const override
bool isDefault() const override
STBase * move(std::size_t n, void *buf) override