20#ifndef RIPPLE_APP_PATHS_RIPPLESTATE_H_INCLUDED
21#define RIPPLE_APP_PATHS_RIPPLESTATE_H_INCLUDED
23#include <xrpl/basics/CountedObject.h>
24#include <xrpl/ledger/View.h>
25#include <xrpl/protocol/Rate.h>
26#include <xrpl/protocol/STAmount.h>
27#include <xrpl/protocol/STLedgerEntry.h>
Tracks the number of instances of an object.
static std::vector< PathFindTrustLine > getItems(AccountID const &accountID, ReadView const &view, LineDirection direction)
PathFindTrustLine()=delete
static std::optional< PathFindTrustLine > makeItem(AccountID const &accountID, std::shared_ptr< SLE const > const &sle)
Rate const & getQualityIn() const
static std::optional< RPCTrustLine > makeItem(AccountID const &accountID, std::shared_ptr< SLE const > const &sle)
static std::vector< RPCTrustLine > getItems(AccountID const &accountID, ReadView const &view)
Rate const & getQualityOut() const
AccountID const & getIssuer() const
Wraps a trust line SLE for convenience.
bool getDeepFreeze() const
Have we set the deep freeze flag on our peer.
STAmount const & getLimit() const
STAmount const & getBalance() const
TrustLineBase(std::shared_ptr< SLE const > const &sle, AccountID const &viewAccount)
TrustLineBase(TrustLineBase &&)=default
AccountID const & getAccountID() const
uint256 const & key() const
Returns the state map key for the ledger entry.
STAmount const & getLimitPeer() const
STAmount const mHighLimit
bool getNoRipplePeer() const
bool getFreezePeer() const
Has the peer set the freeze flag on us.
AccountID const & getAccountIDPeer() const
bool getFreeze() const
Have we set the freeze flag on our peer.
TrustLineBase(TrustLineBase const &)=default
LineDirection getDirectionPeer() const
LineDirection getDirection() const
bool getDeepFreezePeer() const
Has the peer set the deep freeze flag on us.
TrustLineBase & operator=(TrustLineBase const &)=delete
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
LineDirection
Describes how an account was found in a path, and how to find the next set of paths.
Represents a transfer rate.