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

#include <TrustLine.h>

Inheritance diagram for xrpl::RPCTrustLine:
Collaboration diagram for xrpl::RPCTrustLine:

Public Member Functions

 RPCTrustLine ()=delete
 RPCTrustLine (SLE::const_ref sle, AccountID const &viewAccount)
Rate const & getQualityIn () const
Rate const & getQualityOut () const
uint256 const & key () const
 Returns the state map key for the ledger entry.
AccountID const & getAccountID () const
AccountID const & getAccountIDPeer () const
bool getAuth () const
bool getAuthPeer () const
bool getNoRipple () const
bool getNoRipplePeer () const
LineDirection getDirection () const
LineDirection getDirectionPeer () const
bool getFreeze () const
 Have we set the freeze flag on our peer.
bool getDeepFreeze () const
 Have we set the deep freeze flag on our peer.
bool getFreezePeer () const
 Has the peer set the freeze flag on us.
bool getDeepFreezePeer () const
 Has the peer set the deep freeze flag on us.
STAmount const & getBalance () const
STAmount const & getLimit () const
STAmount const & getLimitPeer () const
json::Value getJson (int)

Static Public Member Functions

static std::optional< RPCTrustLinemakeItem (AccountID const &accountID, SLE::const_ref sle)
static std::vector< RPCTrustLinegetItems (AccountID const &accountID, ReadView const &view)

Public Attributes

friend Object

Protected Attributes

uint256 key_
STAmount const lowLimit_
STAmount const highLimit_
STAmount balance_
std::uint32_t flags_
bool viewLowest_

Private Member Functions

 TrustLineBase (SLE::const_ref sle, AccountID const &viewAccount)
 TrustLineBase (TrustLineBase const &)=default
 TrustLineBase (TrustLineBase &&)=default

Static Private Member Functions

static auto & getCounter () noexcept

Private Attributes

Rate lowQualityIn_
Rate lowQualityOut_
Rate highQualityIn_
Rate highQualityOut_

Detailed Description

Definition at line 186 of file TrustLine.h.

Constructor & Destructor Documentation

◆ RPCTrustLine() [1/2]

xrpl::RPCTrustLine::RPCTrustLine ( )
delete

◆ RPCTrustLine() [2/2]

xrpl::RPCTrustLine::RPCTrustLine ( SLE::const_ref sle,
AccountID const & viewAccount )

Definition at line 77 of file TrustLine.cpp.

Member Function Documentation

◆ getQualityIn()

Rate const & xrpl::RPCTrustLine::getQualityIn ( ) const
nodiscard

Definition at line 196 of file TrustLine.h.

◆ getQualityOut()

Rate const & xrpl::RPCTrustLine::getQualityOut ( ) const
nodiscard

Definition at line 202 of file TrustLine.h.

◆ makeItem()

std::optional< RPCTrustLine > xrpl::RPCTrustLine::makeItem ( AccountID const & accountID,
SLE::const_ref sle )
static

Definition at line 87 of file TrustLine.cpp.

◆ getItems()

std::vector< RPCTrustLine > xrpl::RPCTrustLine::getItems ( AccountID const & accountID,
ReadView const & view )
static

Definition at line 95 of file TrustLine.cpp.

◆ TrustLineBase() [1/3]

xrpl::TrustLineBase::TrustLineBase ( SLE::const_ref sle,
AccountID const & viewAccount )
private

Definition at line 42 of file TrustLine.cpp.

◆ TrustLineBase() [2/3]

xrpl::TrustLineBase::TrustLineBase ( TrustLineBase const & )
privatedefault

◆ TrustLineBase() [3/3]

xrpl::TrustLineBase::TrustLineBase ( TrustLineBase && )
privatedefault

◆ key()

uint256 const & xrpl::TrustLineBase::key ( ) const
nodiscardinherited

Returns the state map key for the ledger entry.

Definition at line 51 of file TrustLine.h.

◆ getAccountID()

AccountID const & xrpl::TrustLineBase::getAccountID ( ) const
nodiscardinherited

Definition at line 59 of file TrustLine.h.

◆ getAccountIDPeer()

AccountID const & xrpl::TrustLineBase::getAccountIDPeer ( ) const
nodiscardinherited

Definition at line 65 of file TrustLine.h.

◆ getAuth()

bool xrpl::TrustLineBase::getAuth ( ) const
nodiscardinherited

Definition at line 72 of file TrustLine.h.

◆ getAuthPeer()

bool xrpl::TrustLineBase::getAuthPeer ( ) const
nodiscardinherited

Definition at line 78 of file TrustLine.h.

◆ getNoRipple()

bool xrpl::TrustLineBase::getNoRipple ( ) const
nodiscardinherited

Definition at line 84 of file TrustLine.h.

◆ getNoRipplePeer()

bool xrpl::TrustLineBase::getNoRipplePeer ( ) const
nodiscardinherited

Definition at line 90 of file TrustLine.h.

◆ getDirection()

LineDirection xrpl::TrustLineBase::getDirection ( ) const
nodiscardinherited

Definition at line 96 of file TrustLine.h.

◆ getDirectionPeer()

LineDirection xrpl::TrustLineBase::getDirectionPeer ( ) const
nodiscardinherited

Definition at line 102 of file TrustLine.h.

◆ getFreeze()

bool xrpl::TrustLineBase::getFreeze ( ) const
nodiscardinherited

Have we set the freeze flag on our peer.

Definition at line 109 of file TrustLine.h.

◆ getDeepFreeze()

bool xrpl::TrustLineBase::getDeepFreeze ( ) const
nodiscardinherited

Have we set the deep freeze flag on our peer.

Definition at line 116 of file TrustLine.h.

◆ getFreezePeer()

bool xrpl::TrustLineBase::getFreezePeer ( ) const
nodiscardinherited

Has the peer set the freeze flag on us.

Definition at line 123 of file TrustLine.h.

◆ getDeepFreezePeer()

bool xrpl::TrustLineBase::getDeepFreezePeer ( ) const
nodiscardinherited

Has the peer set the deep freeze flag on us.

Definition at line 130 of file TrustLine.h.

◆ getBalance()

STAmount const & xrpl::TrustLineBase::getBalance ( ) const
nodiscardinherited

Definition at line 136 of file TrustLine.h.

◆ getLimit()

STAmount const & xrpl::TrustLineBase::getLimit ( ) const
nodiscardinherited

Definition at line 142 of file TrustLine.h.

◆ getLimitPeer()

STAmount const & xrpl::TrustLineBase::getLimitPeer ( ) const
nodiscardinherited

Definition at line 148 of file TrustLine.h.

◆ getJson()

json::Value xrpl::TrustLineBase::getJson ( int )
inherited

Definition at line 30 of file TrustLine.cpp.

◆ getCounter()

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

Definition at line 109 of file CountedObject.h.

Member Data Documentation

◆ lowQualityIn_

Rate xrpl::RPCTrustLine::lowQualityIn_
private

Definition at line 214 of file TrustLine.h.

◆ lowQualityOut_

Rate xrpl::RPCTrustLine::lowQualityOut_
private

Definition at line 215 of file TrustLine.h.

◆ highQualityIn_

Rate xrpl::RPCTrustLine::highQualityIn_
private

Definition at line 216 of file TrustLine.h.

◆ highQualityOut_

Rate xrpl::RPCTrustLine::highQualityOut_
private

Definition at line 217 of file TrustLine.h.

◆ key_

uint256 xrpl::TrustLineBase::key_
protectedinherited

Definition at line 157 of file TrustLine.h.

◆ lowLimit_

STAmount const xrpl::TrustLineBase::lowLimit_
protectedinherited

Definition at line 159 of file TrustLine.h.

◆ highLimit_

STAmount const xrpl::TrustLineBase::highLimit_
protectedinherited

Definition at line 160 of file TrustLine.h.

◆ balance_

STAmount xrpl::TrustLineBase::balance_
protectedinherited

Definition at line 162 of file TrustLine.h.

◆ flags_

std::uint32_t xrpl::TrustLineBase::flags_
protectedinherited

Definition at line 164 of file TrustLine.h.

◆ viewLowest_

bool xrpl::TrustLineBase::viewLowest_
protectedinherited

Definition at line 166 of file TrustLine.h.

◆ Object

Definition at line 134 of file CountedObject.h.