rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
xrpl::STIssue Class Referencefinal

#include <STIssue.h>

Inheritance diagram for xrpl::STIssue:
Inheritance graph
[legend]
Collaboration diagram for xrpl::STIssue:
Collaboration graph
[legend]

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
 

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 26 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 22 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

Definition at line 96 of file STIssue.h.

◆ value()

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

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
overridevirtual

Reimplemented from xrpl::STBase.

Definition at line 66 of file STIssue.cpp.

◆ getText()

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

Reimplemented from xrpl::STBase.

Definition at line 72 of file STIssue.cpp.

◆ getJson()

Json::Value xrpl::STIssue::getJson ( JsonOptions  ) const
overridevirtual

Reimplemented from xrpl::STBase.

Definition at line 78 of file STIssue.cpp.

◆ add()

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

Reimplemented from xrpl::STBase.

Definition at line 86 of file STIssue.cpp.

◆ isEquivalent()

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

Reimplemented from xrpl::STBase.

Definition at line 107 of file STIssue.cpp.

◆ isDefault()

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

Reimplemented from xrpl::STBase.

Definition at line 114 of file STIssue.cpp.

◆ copy()

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

Reimplemented from xrpl::STBase.

Definition at line 120 of file STIssue.cpp.

◆ move()

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

Reimplemented from xrpl::STBase.

Definition at line 126 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 32 of file STBase.cpp.

◆ operator!=()

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

Definition at line 38 of file STBase.cpp.

◆ downcast() [1/3]

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

Definition at line 193 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
inherited

Definition at line 203 of file STBase.h.

◆ getFullText()

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

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

Definition at line 62 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 115 of file STBase.cpp.

◆ getFName()

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

Definition at line 122 of file STBase.cpp.

◆ addFieldID()

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

Definition at line 128 of file STBase.cpp.

◆ emplace()

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

Definition at line 213 of file STBase.h.

◆ getCounter()

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

Definition at line 109 of file CountedObject.h.

Friends And Related Symbol Documentation

◆ detail::STVar

friend class detail::STVar
friend

Definition at line 81 of file STIssue.h.

◆ operator== [1/2]

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

Definition at line 126 of file STIssue.h.

◆ operator<=> [1/2]

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

Definition at line 131 of file STIssue.h.

◆ operator== [2/2]

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

Definition at line 138 of file STIssue.h.

◆ operator<=> [2/2]

constexpr 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 116 of file STBase.h.