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

#include <TrustLine.h>

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

Detailed Description

Definition at line 192 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 ( std::shared_ptr< SLE const > const &  sle,
AccountID const &  viewAccount 
)
private

Definition at line 58 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 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.

◆ getNoRipple()

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

Definition at line 104 of file TrustLine.h.

◆ getNoRipplePeer()

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

Definition at line 110 of file TrustLine.h.

◆ getDirection()

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

Definition at line 116 of file TrustLine.h.

◆ getDirectionPeer()

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

Definition at line 123 of file TrustLine.h.

◆ getFreeze()

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

Have we set the freeze flag on our peer.

Definition at line 131 of file TrustLine.h.

◆ getDeepFreeze()

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

Have we set the deep freeze flag on our peer.

Definition at line 138 of file TrustLine.h.

◆ getFreezePeer()

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

Has the peer set the freeze flag on us.

Definition at line 145 of file TrustLine.h.

◆ getDeepFreezePeer()

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

Has the peer set the deep freeze flag on us.

Definition at line 152 of file TrustLine.h.

◆ getBalance()

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

Definition at line 158 of file TrustLine.h.

◆ getLimit()

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

Definition at line 164 of file TrustLine.h.

◆ getLimitPeer()

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

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

Member Data Documentation

◆ key_

uint256 ripple::TrustLineBase::key_
protectedinherited

Definition at line 179 of file TrustLine.h.

◆ mLowLimit

STAmount const ripple::TrustLineBase::mLowLimit
protectedinherited

Definition at line 181 of file TrustLine.h.

◆ mHighLimit

STAmount const ripple::TrustLineBase::mHighLimit
protectedinherited

Definition at line 182 of file TrustLine.h.

◆ mBalance

STAmount ripple::TrustLineBase::mBalance
protectedinherited

Definition at line 184 of file TrustLine.h.

◆ mFlags

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

Definition at line 186 of file TrustLine.h.

◆ mViewLowest

bool ripple::TrustLineBase::mViewLowest
protectedinherited

Definition at line 188 of file TrustLine.h.