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

#include <STAccount.h>

Inheritance diagram for xrpl::STAccount:
Collaboration diagram for xrpl::STAccount:

Public Types

using value_type = AccountID

Public Member Functions

 STAccount ()
 STAccount (SField const &n)
 STAccount (SField const &n, Buffer const &v)
 STAccount (SerialIter &sit, SField const &name)
 STAccount (SField const &n, AccountID const &v)
SerializedTypeID getSType () const override
std::string getText () const override
void add (Serializer &s) const override
bool isEquivalent (STBase const &t) const override
bool isDefault () const override
STAccountoperator= (AccountID const &value)
AccountID const & value () const noexcept
void setValue (AccountID const &v)
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
virtual json::Value getJson (JsonOptions=JsonOptions::Values::None) const
void setFName (SField const &n)
 A STBase is a field.
SField const & getFName () const
void addFieldID (Serializer &s) const

Public Attributes

friend Object

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

AccountID value_
bool default_
SField const * fName_

Friends

class detail::STVar

Detailed Description

Definition at line 11 of file STAccount.h.

Member Typedef Documentation

◆ value_type

Definition at line 22 of file STAccount.h.

Constructor & Destructor Documentation

◆ STAccount() [1/5]

xrpl::STAccount::STAccount ( )

Definition at line 20 of file STAccount.cpp.

◆ STAccount() [2/5]

xrpl::STAccount::STAccount ( SField const & n)

Definition at line 24 of file STAccount.cpp.

◆ STAccount() [3/5]

xrpl::STAccount::STAccount ( SField const & n,
Buffer const & v )

Definition at line 28 of file STAccount.cpp.

◆ STAccount() [4/5]

xrpl::STAccount::STAccount ( SerialIter & sit,
SField const & name )

Definition at line 45 of file STAccount.cpp.

◆ STAccount() [5/5]

xrpl::STAccount::STAccount ( SField const & n,
AccountID const & v )

Definition at line 49 of file STAccount.cpp.

Member Function Documentation

◆ getSType()

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

Reimplemented from xrpl::STBase.

Definition at line 66 of file STAccount.cpp.

◆ getText()

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

Reimplemented from xrpl::STBase.

Definition at line 98 of file STAccount.cpp.

◆ add()

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

Reimplemented from xrpl::STBase.

Definition at line 72 of file STAccount.cpp.

◆ isEquivalent()

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

Reimplemented from xrpl::STBase.

Definition at line 85 of file STAccount.cpp.

◆ isDefault()

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

Reimplemented from xrpl::STBase.

Definition at line 92 of file STAccount.cpp.

◆ operator=()

STAccount & xrpl::STAccount::operator= ( AccountID const & value)

Definition at line 65 of file STAccount.h.

◆ value()

AccountID const & xrpl::STAccount::value ( ) const
nodiscardnoexcept

Definition at line 72 of file STAccount.h.

◆ setValue()

void xrpl::STAccount::setValue ( AccountID const & v)

Definition at line 78 of file STAccount.h.

◆ copy()

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

Reimplemented from xrpl::STBase.

Definition at line 54 of file STAccount.cpp.

◆ move()

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

Reimplemented from xrpl::STBase.

Definition at line 60 of file STAccount.cpp.

◆ 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.

◆ getJson()

◆ 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< STAccount >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

◆ detail::STVar

friend class detail::STVar
friend

Definition at line 61 of file STAccount.h.

Member Data Documentation

◆ value_

AccountID xrpl::STAccount::value_
private

Definition at line 18 of file STAccount.h.

◆ default_

bool xrpl::STAccount::default_
private

Definition at line 19 of file STAccount.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.