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
ripple::RPCTrustLine Class Referencefinal

#include <TrustLine.h>

Inheritance diagram for ripple::RPCTrustLine:
Inheritance graph
[legend]
Collaboration diagram for ripple::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 193 of file TrustLine.h.

Constructor & Destructor Documentation

◆ RPCTrustLine() [1/2]

ripple::RPCTrustLine::RPCTrustLine ( )
delete

◆ RPCTrustLine() [2/2]

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

Definition at line 79 of file TrustLine.cpp.

Member Function Documentation

◆ getQualityIn()

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

Definition at line 206 of file TrustLine.h.

◆ getQualityOut()

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

Definition at line 212 of file TrustLine.h.

◆ makeItem()

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

Definition at line 91 of file TrustLine.cpp.

◆ getItems()

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

Definition at line 101 of file TrustLine.cpp.

◆ TrustLineBase() [1/3]

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

Definition at line 39 of file TrustLine.cpp.

◆ TrustLineBase() [2/3]

ripple::TrustLineBase::TrustLineBase ( TrustLineBase const &  )
privatedefault

◆ TrustLineBase() [3/3]

ripple::TrustLineBase::TrustLineBase ( TrustLineBase &&  )
privatedefault

◆ key()

uint256 const & ripple::TrustLineBase::key ( ) const
inherited

Returns the state map key for the ledger entry.

Definition at line 52 of file TrustLine.h.

◆ getAccountID()

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

Definition at line 60 of file TrustLine.h.

◆ getAccountIDPeer()

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

Definition at line 66 of file TrustLine.h.

◆ getAuth()

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

Definition at line 73 of file TrustLine.h.

◆ getAuthPeer()

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

Definition at line 79 of file TrustLine.h.

◆ getNoRipple()

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

Definition at line 85 of file TrustLine.h.

◆ getNoRipplePeer()

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

Definition at line 91 of file TrustLine.h.

◆ getDirection()

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

Definition at line 97 of file TrustLine.h.

◆ getDirectionPeer()

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

Definition at line 104 of file TrustLine.h.

◆ getFreeze()

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

Have we set the freeze flag on our peer.

Definition at line 112 of file TrustLine.h.

◆ getDeepFreeze()

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

Have we set the deep freeze flag on our peer.

Definition at line 119 of file TrustLine.h.

◆ getFreezePeer()

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

Has the peer set the freeze flag on us.

Definition at line 126 of file TrustLine.h.

◆ getDeepFreezePeer()

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

Has the peer set the deep freeze flag on us.

Definition at line 133 of file TrustLine.h.

◆ getBalance()

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

Definition at line 139 of file TrustLine.h.

◆ getLimit()

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

Definition at line 145 of file TrustLine.h.

◆ getLimitPeer()

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

Definition at line 151 of file TrustLine.h.

◆ getJson()

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

Definition at line 24 of file TrustLine.cpp.

◆ getCounter()

static auto & ripple::CountedObject< RPCTrustLine >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 110 of file CountedObject.h.

Member Data Documentation

◆ lowQualityIn_

Rate ripple::RPCTrustLine::lowQualityIn_
private

Definition at line 224 of file TrustLine.h.

◆ lowQualityOut_

Rate ripple::RPCTrustLine::lowQualityOut_
private

Definition at line 225 of file TrustLine.h.

◆ highQualityIn_

Rate ripple::RPCTrustLine::highQualityIn_
private

Definition at line 226 of file TrustLine.h.

◆ highQualityOut_

Rate ripple::RPCTrustLine::highQualityOut_
private

Definition at line 227 of file TrustLine.h.

◆ key_

uint256 ripple::TrustLineBase::key_
protectedinherited

Definition at line 160 of file TrustLine.h.

◆ mLowLimit

STAmount const ripple::TrustLineBase::mLowLimit
protectedinherited

Definition at line 162 of file TrustLine.h.

◆ mHighLimit

STAmount const ripple::TrustLineBase::mHighLimit
protectedinherited

Definition at line 163 of file TrustLine.h.

◆ mBalance

STAmount ripple::TrustLineBase::mBalance
protectedinherited

Definition at line 165 of file TrustLine.h.

◆ mFlags

std::uint32_t ripple::TrustLineBase::mFlags
protectedinherited

Definition at line 167 of file TrustLine.h.

◆ mViewLowest

bool ripple::TrustLineBase::mViewLowest
protectedinherited

Definition at line 169 of file TrustLine.h.