rippled
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
ripple::PathFindTrustLine Class Referencefinal
Inheritance diagram for ripple::PathFindTrustLine:
Inheritance graph
[legend]
Collaboration diagram for ripple::PathFindTrustLine:
Collaboration graph
[legend]

Public Member Functions

 PathFindTrustLine ()=delete
 
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< PathFindTrustLinemakeItem (AccountID const &accountID, std::shared_ptr< SLE const > const &sle)
 
static std::vector< PathFindTrustLinegetItems (AccountID const &accountID, ReadView const &view, LineDirection direction)
 

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
 

Detailed Description

Definition at line 184 of file TrustLine.h.

Constructor & Destructor Documentation

◆ PathFindTrustLine()

ripple::PathFindTrustLine::PathFindTrustLine ( )
delete

Member Function Documentation

◆ makeItem()

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

Definition at line 52 of file TrustLine.cpp.

◆ getItems()

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

Definition at line 89 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< PathFindTrustLine >::getCounter
staticprivatenoexceptinherited

Definition at line 128 of file CountedObject.h.

Member Data Documentation

◆ 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.