xrpld
Loading...
Searching...
No Matches
xrpl::Issue Class Reference

A currency issued by an account. More...

#include <Issue.h>

Collaboration diagram for xrpl::Issue:

Public Member Functions

 Issue ()=default
 Issue (Currency const &c, AccountID const &a)
AccountID const & getIssuer () const
std::string getText () const
void setJson (json::Value &jv) const
bool native () const
bool integral () const

Public Attributes

Currency currency
AccountID account

Friends

constexpr std::weak_ordering operator<=> (Issue const &lhs, Issue const &rhs)
 Strict weak ordering.

Detailed Description

A currency issued by an account.

See also
Currency, AccountID, Issue, Book

Definition at line 12 of file Issue.h.

Constructor & Destructor Documentation

◆ Issue() [1/2]

xrpl::Issue::Issue ( )
default

◆ Issue() [2/2]

xrpl::Issue::Issue ( Currency const & c,
AccountID const & a )

Definition at line 20 of file Issue.h.

Member Function Documentation

◆ getIssuer()

AccountID const & xrpl::Issue::getIssuer ( ) const
nodiscard

Definition at line 25 of file Issue.h.

◆ getText()

std::string xrpl::Issue::getText ( ) const
nodiscard

Definition at line 17 of file Issue.cpp.

◆ setJson()

void xrpl::Issue::setJson ( json::Value & jv) const

Definition at line 46 of file Issue.cpp.

◆ native()

bool xrpl::Issue::native ( ) const
nodiscard

Definition at line 54 of file Issue.cpp.

◆ integral()

bool xrpl::Issue::integral ( ) const
nodiscard

Definition at line 60 of file Issue.cpp.

◆ operator<=>

std::weak_ordering operator<=> ( Issue const & lhs,
Issue const & rhs )
friend

Strict weak ordering.

Definition at line 80 of file Issue.h.

Member Data Documentation

◆ currency

Currency xrpl::Issue::currency

Definition at line 15 of file Issue.h.

◆ account

AccountID xrpl::Issue::account

Definition at line 16 of file Issue.h.