rippled
|
Wraps a trust line SLE for convenience. More...
Public Member Functions | |
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) |
Protected Member Functions | |
TrustLineBase (std::shared_ptr< SLE const > const &sle, AccountID const &viewAccount) | |
~TrustLineBase ()=default | |
TrustLineBase (TrustLineBase const &)=default | |
TrustLineBase & | operator= (TrustLineBase const &)=delete |
TrustLineBase (TrustLineBase &&)=default | |
Protected Attributes | |
uint256 | key_ |
const STAmount | mLowLimit |
const STAmount | mHighLimit |
STAmount | mBalance |
std::uint32_t | mFlags |
bool | mViewLowest |
Wraps a trust line SLE for convenience.
The complication of trust lines is that there is a "low" account and a "high" account. This wraps the SLE and expresses its data from the perspective of a chosen account on the line.
This wrapper is primarily used in the path finder and there can easily be tens of millions of instances of this class. When modifying this class think carefully about the memory implications.
Definition at line 53 of file TrustLine.h.
|
protected |
Definition at line 28 of file TrustLine.cpp.
|
protecteddefault |
|
protecteddefault |
|
protecteddefault |
|
protecteddelete |
uint256 const& ripple::TrustLineBase::key | ( | ) | const |
Returns the state map key for the ledger entry.
Definition at line 71 of file TrustLine.h.
AccountID const& ripple::TrustLineBase::getAccountID | ( | ) | const |
Definition at line 79 of file TrustLine.h.
AccountID const& ripple::TrustLineBase::getAccountIDPeer | ( | ) | const |
Definition at line 85 of file TrustLine.h.
bool ripple::TrustLineBase::getAuth | ( | ) | const |
Definition at line 92 of file TrustLine.h.
bool ripple::TrustLineBase::getAuthPeer | ( | ) | const |
Definition at line 98 of file TrustLine.h.
bool ripple::TrustLineBase::getDefaultRipple | ( | ) | const |
Definition at line 104 of file TrustLine.h.
bool ripple::TrustLineBase::getNoRipple | ( | ) | const |
Definition at line 110 of file TrustLine.h.
bool ripple::TrustLineBase::getNoRipplePeer | ( | ) | const |
Definition at line 116 of file TrustLine.h.
LineDirection ripple::TrustLineBase::getDirection | ( | ) | const |
Definition at line 122 of file TrustLine.h.
LineDirection ripple::TrustLineBase::getDirectionPeer | ( | ) | const |
Definition at line 129 of file TrustLine.h.
bool ripple::TrustLineBase::getFreeze | ( | ) | const |
Have we set the freeze flag on our peer.
Definition at line 137 of file TrustLine.h.
bool ripple::TrustLineBase::getFreezePeer | ( | ) | const |
Has the peer set the freeze flag on us.
Definition at line 144 of file TrustLine.h.
STAmount const& ripple::TrustLineBase::getBalance | ( | ) | const |
Definition at line 150 of file TrustLine.h.
STAmount const& ripple::TrustLineBase::getLimit | ( | ) | const |
Definition at line 156 of file TrustLine.h.
STAmount const& ripple::TrustLineBase::getLimitPeer | ( | ) | const |
Definition at line 162 of file TrustLine.h.
Json::Value ripple::TrustLineBase::getJson | ( | int | ) |
Definition at line 43 of file TrustLine.cpp.
|
protected |
Definition at line 171 of file TrustLine.h.
|
protected |
Definition at line 173 of file TrustLine.h.
|
protected |
Definition at line 174 of file TrustLine.h.
|
protected |
Definition at line 176 of file TrustLine.h.
|
protected |
Definition at line 178 of file TrustLine.h.
|
protected |
Definition at line 180 of file TrustLine.h.