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
xrpl::PathFindTrustLine Class Referencefinal

#include <TrustLine.h>

Inheritance diagram for xrpl::PathFindTrustLine:
Inheritance graph
[legend]
Collaboration diagram for xrpl::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 168 of file TrustLine.h.

Constructor & Destructor Documentation

◆ PathFindTrustLine()

xrpl::PathFindTrustLine::PathFindTrustLine ( )
delete

Member Function Documentation

◆ makeItem()

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

Definition at line 31 of file TrustLine.cpp.

◆ getItems()

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

Definition at line 58 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< PathFindTrustLine >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

Member Data Documentation

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