rippled
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
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. More...
 
AccountID const & getAccountID () const
 
AccountID const & getAccountIDPeer () const
 
bool getAuth () const
 
bool getAuthPeer () const
 
bool getDefaultRipple () 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. More...
 
bool getFreezePeer () const
 Has the peer set the freeze flag on us. More...
 
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_
 
const STAmount mLowLimit
 
const STAmount 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 204 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 98 of file TrustLine.cpp.

Member Function Documentation

◆ getQualityIn()

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

Definition at line 217 of file TrustLine.h.

◆ getQualityOut()

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

Definition at line 223 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 110 of file TrustLine.cpp.

◆ getItems()

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

Definition at line 120 of file TrustLine.cpp.

◆ TrustLineBase() [1/3]

ripple::TrustLineBase::TrustLineBase
private

Definition at line 28 of file TrustLine.cpp.

◆ TrustLineBase() [2/3]

ripple::TrustLineBase::TrustLineBase
privatedefault

◆ TrustLineBase() [3/3]

ripple::TrustLineBase::TrustLineBase
privatedefault

◆ key()

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

Returns the state map key for the ledger entry.

Definition at line 71 of file TrustLine.h.

◆ getAccountID()

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

Definition at line 79 of file TrustLine.h.

◆ getAccountIDPeer()

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

Definition at line 85 of file TrustLine.h.

◆ getAuth()

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

Definition at line 92 of file TrustLine.h.

◆ getAuthPeer()

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

Definition at line 98 of file TrustLine.h.

◆ getDefaultRipple()

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

Definition at line 104 of file TrustLine.h.

◆ getNoRipple()

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

Definition at line 110 of file TrustLine.h.

◆ getNoRipplePeer()

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

Definition at line 116 of file TrustLine.h.

◆ getDirection()

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

Definition at line 122 of file TrustLine.h.

◆ getDirectionPeer()

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

Definition at line 129 of file TrustLine.h.

◆ getFreeze()

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

Have we set the freeze flag on our peer.

Definition at line 137 of file TrustLine.h.

◆ getFreezePeer()

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

Has the peer set the freeze flag on us.

Definition at line 144 of file TrustLine.h.

◆ getBalance()

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

Definition at line 150 of file TrustLine.h.

◆ getLimit()

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

Definition at line 156 of file TrustLine.h.

◆ getLimitPeer()

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

Definition at line 162 of file TrustLine.h.

◆ getJson()

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

Definition at line 43 of file TrustLine.cpp.

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ lowQualityIn_

Rate ripple::RPCTrustLine::lowQualityIn_
private

Definition at line 235 of file TrustLine.h.

◆ lowQualityOut_

Rate ripple::RPCTrustLine::lowQualityOut_
private

Definition at line 236 of file TrustLine.h.

◆ highQualityIn_

Rate ripple::RPCTrustLine::highQualityIn_
private

Definition at line 237 of file TrustLine.h.

◆ highQualityOut_

Rate ripple::RPCTrustLine::highQualityOut_
private

Definition at line 238 of file TrustLine.h.

◆ key_

uint256 ripple::TrustLineBase::key_
protectedinherited

Definition at line 171 of file TrustLine.h.

◆ mLowLimit

const STAmount ripple::TrustLineBase::mLowLimit
protectedinherited

Definition at line 173 of file TrustLine.h.

◆ mHighLimit

const STAmount ripple::TrustLineBase::mHighLimit
protectedinherited

Definition at line 174 of file TrustLine.h.

◆ mBalance

STAmount ripple::TrustLineBase::mBalance
protectedinherited

Definition at line 176 of file TrustLine.h.

◆ mFlags

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

Definition at line 178 of file TrustLine.h.

◆ mViewLowest

bool ripple::TrustLineBase::mViewLowest
protectedinherited

Definition at line 180 of file TrustLine.h.