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 203 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 213 of file TrustLine.h.

◆ getQualityOut()

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

Definition at line 219 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 49 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 60 of file TrustLine.h.

◆ getAccountID()

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

Definition at line 68 of file TrustLine.h.

◆ getAccountIDPeer()

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

Definition at line 74 of file TrustLine.h.

◆ getAuth()

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

Definition at line 81 of file TrustLine.h.

◆ getAuthPeer()

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

Definition at line 87 of file TrustLine.h.

◆ getNoRipple()

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

Definition at line 93 of file TrustLine.h.

◆ getNoRipplePeer()

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

Definition at line 99 of file TrustLine.h.

◆ getDirection()

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

Definition at line 105 of file TrustLine.h.

◆ getDirectionPeer()

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

Definition at line 111 of file TrustLine.h.

◆ getFreeze()

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

Have we set the freeze flag on our peer.

Definition at line 120 of file TrustLine.h.

◆ getDeepFreeze()

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

Have we set the deep freeze flag on our peer.

Definition at line 129 of file TrustLine.h.

◆ getFreezePeer()

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

Has the peer set the freeze flag on us.

Definition at line 138 of file TrustLine.h.

◆ getDeepFreezePeer()

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

Has the peer set the deep freeze flag on us.

Definition at line 147 of file TrustLine.h.

◆ getBalance()

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

Definition at line 153 of file TrustLine.h.

◆ getLimit()

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

Definition at line 159 of file TrustLine.h.

◆ getLimitPeer()

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

Definition at line 165 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 113 of file CountedObject.h.

Member Data Documentation

◆ lowQualityIn_

Rate xrpl::RPCTrustLine::lowQualityIn_
private

Definition at line 231 of file TrustLine.h.

◆ lowQualityOut_

Rate xrpl::RPCTrustLine::lowQualityOut_
private

Definition at line 232 of file TrustLine.h.

◆ highQualityIn_

Rate xrpl::RPCTrustLine::highQualityIn_
private

Definition at line 233 of file TrustLine.h.

◆ highQualityOut_

Rate xrpl::RPCTrustLine::highQualityOut_
private

Definition at line 234 of file TrustLine.h.

◆ key_

uint256 xrpl::TrustLineBase::key_
protectedinherited

Definition at line 174 of file TrustLine.h.

◆ lowLimit_

STAmount const xrpl::TrustLineBase::lowLimit_
protectedinherited

Definition at line 176 of file TrustLine.h.

◆ highLimit_

STAmount const xrpl::TrustLineBase::highLimit_
protectedinherited

Definition at line 177 of file TrustLine.h.

◆ balance_

STAmount xrpl::TrustLineBase::balance_
protectedinherited

Definition at line 179 of file TrustLine.h.

◆ flags_

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

Definition at line 181 of file TrustLine.h.

◆ viewLowest_

bool xrpl::TrustLineBase::viewLowest_
protectedinherited

Definition at line 183 of file TrustLine.h.

◆ Object

Definition at line 138 of file CountedObject.h.