|
rippled
|
Wraps a trust line SLE for convenience. More...

Public Types | |
| using | pointer = std::shared_ptr< RippleState > |
Public Member Functions | |
| RippleState ()=delete | |
| virtual | ~RippleState ()=default |
| RippleState (std::shared_ptr< SLE const > &&sle, AccountID const &viewAccount) | |
| uint256 | 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 | getNoRipple () const |
| bool | getNoRipplePeer () 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 |
| Rate const & | getQualityIn () const |
| Rate const & | getQualityOut () const |
| Json::Value | getJson (int) |
Static Public Member Functions | |
| static RippleState::pointer | makeItem (AccountID const &accountID, std::shared_ptr< SLE const > sle) |
Private Attributes | |
| std::shared_ptr< SLE const > | sle_ |
| bool | mViewLowest |
| std::uint32_t | mFlags |
| STAmount const & | mLowLimit |
| STAmount const & | mHighLimit |
| AccountID const & | mLowID |
| AccountID const & | mHighID |
| Rate | lowQualityIn_ |
| Rate | lowQualityOut_ |
| Rate | highQualityIn_ |
| Rate | highQualityOut_ |
| STAmount | mBalance |
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.
Definition at line 39 of file RippleState.h.
Definition at line 43 of file RippleState.h.
|
delete |
|
virtualdefault |
| ripple::RippleState::RippleState | ( | std::shared_ptr< SLE const > && | sle, |
| AccountID const & | viewAccount | ||
| ) |
Definition at line 40 of file RippleState.cpp.
|
static |
Definition at line 29 of file RippleState.cpp.
| uint256 ripple::RippleState::key | ( | ) | const |
Returns the state map key for the ledger entry.
Definition at line 60 of file RippleState.h.
| AccountID const& ripple::RippleState::getAccountID | ( | ) | const |
Definition at line 67 of file RippleState.h.
| AccountID const& ripple::RippleState::getAccountIDPeer | ( | ) | const |
Definition at line 72 of file RippleState.h.
| bool ripple::RippleState::getAuth | ( | ) | const |
Definition at line 78 of file RippleState.h.
| bool ripple::RippleState::getAuthPeer | ( | ) | const |
Definition at line 83 of file RippleState.h.
| bool ripple::RippleState::getNoRipple | ( | ) | const |
Definition at line 88 of file RippleState.h.
| bool ripple::RippleState::getNoRipplePeer | ( | ) | const |
Definition at line 93 of file RippleState.h.
| bool ripple::RippleState::getFreeze | ( | ) | const |
Have we set the freeze flag on our peer.
Definition at line 99 of file RippleState.h.
| bool ripple::RippleState::getFreezePeer | ( | ) | const |
Has the peer set the freeze flag on us.
Definition at line 105 of file RippleState.h.
| STAmount const& ripple::RippleState::getBalance | ( | ) | const |
Definition at line 110 of file RippleState.h.
| STAmount const& ripple::RippleState::getLimit | ( | ) | const |
Definition at line 115 of file RippleState.h.
| STAmount const& ripple::RippleState::getLimitPeer | ( | ) | const |
Definition at line 120 of file RippleState.h.
| Rate const& ripple::RippleState::getQualityIn | ( | ) | const |
Definition at line 126 of file RippleState.h.
| Rate const& ripple::RippleState::getQualityOut | ( | ) | const |
Definition at line 132 of file RippleState.h.
| Json::Value ripple::RippleState::getJson | ( | int | ) |
Definition at line 61 of file RippleState.cpp.
|
private |
Definition at line 140 of file RippleState.h.
|
private |
Definition at line 142 of file RippleState.h.
|
private |
Definition at line 144 of file RippleState.h.
|
private |
Definition at line 146 of file RippleState.h.
|
private |
Definition at line 147 of file RippleState.h.
|
private |
Definition at line 149 of file RippleState.h.
|
private |
Definition at line 150 of file RippleState.h.
|
private |
Definition at line 152 of file RippleState.h.
|
private |
Definition at line 153 of file RippleState.h.
|
private |
Definition at line 154 of file RippleState.h.
|
private |
Definition at line 155 of file RippleState.h.
|
private |
Definition at line 157 of file RippleState.h.
1.8.17