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

#include <TrustLine.h>

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

Public Member Functions

 RPCTrustLine ()=delete
 
 RPCTrustLine (std::shared_ptr< SLE const > const &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, std::shared_ptr< SLE const > const &sle)
 
static std::vector< RPCTrustLinegetItems (AccountID const &accountID, ReadView const &view)
 

Protected Attributes

uint256 key_
 
STAmount const mLowLimit
 
STAmount const mHighLimit
 
STAmount mBalance
 
std::uint32_t mFlags
 
bool mViewLowest
 

Private Member Functions

 TrustLineBase (std::shared_ptr< SLE const > const &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 184 of file TrustLine.h.

Constructor & Destructor Documentation

◆ RPCTrustLine() [1/2]

xrpl::RPCTrustLine::RPCTrustLine ( )
delete

◆ RPCTrustLine() [2/2]

xrpl::RPCTrustLine::RPCTrustLine ( std::shared_ptr< SLE const > const &  sle,
AccountID const &  viewAccount 
)

Definition at line 63 of file TrustLine.cpp.

Member Function Documentation

◆ getQualityIn()

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

Definition at line 194 of file TrustLine.h.

◆ getQualityOut()

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

Definition at line 200 of file TrustLine.h.

◆ makeItem()

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

Definition at line 73 of file TrustLine.cpp.

◆ getItems()

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

Definition at line 81 of file TrustLine.cpp.

◆ TrustLineBase() [1/3]

xrpl::TrustLineBase::TrustLineBase ( std::shared_ptr< SLE const > const &  sle,
AccountID const &  viewAccount 
)
private

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

Returns the state map key for the ledger entry.

Definition at line 49 of file TrustLine.h.

◆ getAccountID()

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

Definition at line 57 of file TrustLine.h.

◆ getAccountIDPeer()

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

Definition at line 63 of file TrustLine.h.

◆ getAuth()

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

Definition at line 70 of file TrustLine.h.

◆ getAuthPeer()

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

Definition at line 76 of file TrustLine.h.

◆ getNoRipple()

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

Definition at line 82 of file TrustLine.h.

◆ getNoRipplePeer()

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

Definition at line 88 of file TrustLine.h.

◆ getDirection()

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

Definition at line 94 of file TrustLine.h.

◆ getDirectionPeer()

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

Definition at line 100 of file TrustLine.h.

◆ getFreeze()

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

Have we set the freeze flag on our peer.

Definition at line 107 of file TrustLine.h.

◆ getDeepFreeze()

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

Have we set the deep freeze flag on our peer.

Definition at line 114 of file TrustLine.h.

◆ getFreezePeer()

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

Has the peer set the freeze flag on us.

Definition at line 121 of file TrustLine.h.

◆ getDeepFreezePeer()

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

Has the peer set the deep freeze flag on us.

Definition at line 128 of file TrustLine.h.

◆ getBalance()

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

Definition at line 134 of file TrustLine.h.

◆ getLimit()

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

Definition at line 140 of file TrustLine.h.

◆ getLimitPeer()

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

Definition at line 146 of file TrustLine.h.

◆ getJson()

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

Definition at line 22 of file TrustLine.cpp.

◆ getCounter()

static 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 212 of file TrustLine.h.

◆ lowQualityOut_

Rate xrpl::RPCTrustLine::lowQualityOut_
private

Definition at line 213 of file TrustLine.h.

◆ highQualityIn_

Rate xrpl::RPCTrustLine::highQualityIn_
private

Definition at line 214 of file TrustLine.h.

◆ highQualityOut_

Rate xrpl::RPCTrustLine::highQualityOut_
private

Definition at line 215 of file TrustLine.h.

◆ key_

uint256 xrpl::TrustLineBase::key_
protectedinherited

Definition at line 155 of file TrustLine.h.

◆ mLowLimit

STAmount const xrpl::TrustLineBase::mLowLimit
protectedinherited

Definition at line 157 of file TrustLine.h.

◆ mHighLimit

STAmount const xrpl::TrustLineBase::mHighLimit
protectedinherited

Definition at line 158 of file TrustLine.h.

◆ mBalance

STAmount xrpl::TrustLineBase::mBalance
protectedinherited

Definition at line 160 of file TrustLine.h.

◆ mFlags

std::uint32_t xrpl::TrustLineBase::mFlags
protectedinherited

Definition at line 162 of file TrustLine.h.

◆ mViewLowest

bool xrpl::TrustLineBase::mViewLowest
protectedinherited

Definition at line 164 of file TrustLine.h.