xrpld
Loading...
Searching...
No Matches
xrpl::STIssue Class Referencefinal

#include <STIssue.h>

Inheritance diagram for xrpl::STIssue:
Collaboration diagram for xrpl::STIssue:

Public Types

using value_type = Asset

Public Member Functions

 STIssue ()=default
 STIssue (STIssue const &rhs)=default
 STIssue (SerialIter &sit, SField const &name)
template<AssetType A>
 STIssue (SField const &name, A const &issue)
 STIssue (SField const &name)
STIssueoperator= (STIssue const &rhs)=default
template<ValidIssueType TIss>
TIss const & get () const
template<ValidIssueType TIss>
bool holds () const
value_type const & value () const noexcept
void setIssue (Asset const &issue)
SerializedTypeID getSType () const override
std::string getText () const override
json::Value getJson (JsonOptions) const override
void add (Serializer &s) const override
bool isEquivalent (STBase const &t) const override
bool isDefault () const override
template<ValidIssueType TIss>
TIss const & get () const
bool operator== (STBase const &t) const
bool operator!= (STBase const &t) const
template<class D>
D & downcast ()
template<class D>
D const & downcast () const
template<class D>
D const & downcast () const
virtual std::string getFullText () const
void setFName (SField const &n)
 A STBase is a field.
SField const & getFName () const
void addFieldID (Serializer &s) const

Static Protected Member Functions

template<class T>
static STBaseemplace (std::size_t n, void *buf, T &&val)

Private Member Functions

STBasecopy (std::size_t n, void *buf) const override
STBasemove (std::size_t n, void *buf) override

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

Asset asset_ {xrpIssue()}
SField const * fName_
friend Object

Friends

class detail::STVar
constexpr bool operator== (STIssue const &lhs, STIssue const &rhs)
constexpr std::weak_ordering operator<=> (STIssue const &lhs, STIssue const &rhs)
constexpr bool operator== (STIssue const &lhs, Asset const &rhs)
constexpr std::weak_ordering operator<=> (STIssue const &lhs, Asset const &rhs)

Detailed Description

Definition at line 11 of file STIssue.h.

Member Typedef Documentation

◆ value_type

Definition at line 17 of file STIssue.h.

Constructor & Destructor Documentation

◆ STIssue() [1/5]

xrpl::STIssue::STIssue ( )
default

◆ STIssue() [2/5]

xrpl::STIssue::STIssue ( STIssue const & rhs)
default

◆ STIssue() [3/5]

xrpl::STIssue::STIssue ( SerialIter & sit,
SField const & name )
explicit

Definition at line 27 of file STIssue.cpp.

◆ STIssue() [4/5]

template<AssetType A>
xrpl::STIssue::STIssue ( SField const & name,
A const & issue )
explicit

Definition at line 85 of file STIssue.h.

◆ STIssue() [5/5]

xrpl::STIssue::STIssue ( SField const & name)
explicit

Definition at line 23 of file STIssue.cpp.

Member Function Documentation

◆ operator=()

STIssue & xrpl::STIssue::operator= ( STIssue const & rhs)
default

◆ get() [1/2]

template<ValidIssueType TIss>
TIss const & xrpl::STIssue::get ( ) const

◆ holds()

template<ValidIssueType TIss>
bool xrpl::STIssue::holds ( ) const
nodiscard

Definition at line 96 of file STIssue.h.

◆ value()

STIssue::value_type const & xrpl::STIssue::value ( ) const
nodiscardnoexcept

Definition at line 111 of file STIssue.h.

◆ setIssue()

void xrpl::STIssue::setIssue ( Asset const & issue)

Definition at line 117 of file STIssue.h.

◆ getSType()

SerializedTypeID xrpl::STIssue::getSType ( ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 70 of file STIssue.cpp.

◆ getText()

std::string xrpl::STIssue::getText ( ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 76 of file STIssue.cpp.

◆ getJson()

json::Value xrpl::STIssue::getJson ( JsonOptions ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 82 of file STIssue.cpp.

◆ add()

void xrpl::STIssue::add ( Serializer & s) const
overridevirtual

Reimplemented from xrpl::STBase.

Definition at line 90 of file STIssue.cpp.

◆ isEquivalent()

bool xrpl::STIssue::isEquivalent ( STBase const & t) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 108 of file STIssue.cpp.

◆ isDefault()

bool xrpl::STIssue::isDefault ( ) const
nodiscardoverridevirtual

Reimplemented from xrpl::STBase.

Definition at line 115 of file STIssue.cpp.

◆ copy()

STBase * xrpl::STIssue::copy ( std::size_t n,
void * buf ) const
overrideprivatevirtual

Reimplemented from xrpl::STBase.

Definition at line 123 of file STIssue.cpp.

◆ move()

STBase * xrpl::STIssue::move ( std::size_t n,
void * buf )
overrideprivatevirtual

Reimplemented from xrpl::STBase.

Definition at line 129 of file STIssue.cpp.

◆ get() [2/2]

template<ValidIssueType TIss>
TIss const & xrpl::STIssue::get ( ) const

Definition at line 103 of file STIssue.h.

◆ operator==()

bool xrpl::STBase::operator== ( STBase const & t) const
inherited

Definition at line 36 of file STBase.cpp.

◆ operator!=()

bool xrpl::STBase::operator!= ( STBase const & t) const
inherited

Definition at line 42 of file STBase.cpp.

◆ downcast() [1/3]

template<class D>
D & xrpl::STBase::downcast ( )
inherited

Definition at line 195 of file STBase.h.

◆ downcast() [2/3]

template<class D>
D const & xrpl::STBase::downcast ( ) const
inherited

◆ downcast() [3/3]

template<class D>
D const & xrpl::STBase::downcast ( ) const
nodiscardinherited

Definition at line 205 of file STBase.h.

◆ getFullText()

std::string xrpl::STBase::getFullText ( ) const
nodiscardvirtualinherited

Reimplemented in xrpl::STAmount, xrpl::STArray, xrpl::STLedgerEntry, xrpl::STObject, and xrpl::STTx.

Definition at line 66 of file STBase.cpp.

◆ setFName()

void xrpl::STBase::setFName ( SField const & n)
inherited

A STBase is a field.

This sets the name.

Definition at line 119 of file STBase.cpp.

◆ getFName()

SField const & xrpl::STBase::getFName ( ) const
nodiscardinherited

Definition at line 126 of file STBase.cpp.

◆ addFieldID()

void xrpl::STBase::addFieldID ( Serializer & s) const
inherited

Definition at line 132 of file STBase.cpp.

◆ emplace()

template<class T>
STBase * xrpl::STBase::emplace ( std::size_t n,
void * buf,
T && val )
staticprotectedinherited

Definition at line 215 of file STBase.h.

◆ getCounter()

auto & xrpl::CountedObject< STIssue >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

◆ detail::STVar

friend class detail::STVar
friend

Definition at line 81 of file STIssue.h.

◆ operator== [1/2]

bool operator== ( STIssue const & lhs,
STIssue const & rhs )
friend

Definition at line 126 of file STIssue.h.

◆ operator<=> [1/2]

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

Definition at line 131 of file STIssue.h.

◆ operator== [2/2]

bool operator== ( STIssue const & lhs,
Asset const & rhs )
friend

Definition at line 138 of file STIssue.h.

◆ operator<=> [2/2]

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

Definition at line 143 of file STIssue.h.

Member Data Documentation

◆ asset_

Asset xrpl::STIssue::asset_ {xrpIssue()}
private

Definition at line 14 of file STIssue.h.

◆ fName_

SField const* xrpl::STBase::fName_
privateinherited

Definition at line 118 of file STBase.h.

◆ Object

Definition at line 134 of file CountedObject.h.