rippled
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::TxMeta Class Reference
Collaboration diagram for ripple::TxMeta:
Collaboration graph
[legend]

Classes

struct  CtorHelper
 

Public Member Functions

 TxMeta (uint256 const &transactionID, std::uint32_t ledger)
 
 TxMeta (uint256 const &txID, std::uint32_t ledger, Blob const &)
 
 TxMeta (uint256 const &txID, std::uint32_t ledger, std::string const &)
 
 TxMeta (uint256 const &txID, std::uint32_t ledger, STObject const &)
 
uint256 const & getTxID () const
 
std::uint32_t getLgrSeq () const
 
int getResult () const
 
TER getResultTER () const
 
std::uint32_t getIndex () const
 
void setAffectedNode (uint256 const &, SField const &type, std::uint16_t nodeType)
 
STObjectgetAffectedNode (SLE::ref node, SField const &type)
 
STObjectgetAffectedNode (uint256 const &)
 
boost::container::flat_set< AccountIDgetAffectedAccounts () const
 Return a list of accounts affected by this transaction. More...
 
Json::Value getJson (JsonOptions p) const
 
void addRaw (Serializer &, TER, std::uint32_t index)
 
STObject getAsObject () const
 
STArraygetNodes ()
 
STArray const & getNodes () const
 
void setDeliveredAmount (STAmount const &delivered)
 
STAmount getDeliveredAmount () const
 
bool hasDeliveredAmount () const
 

Private Member Functions

template<class T >
 TxMeta (uint256 const &txID, std::uint32_t ledger, T const &data, CtorHelper)
 

Private Attributes

uint256 mTransactionID
 
std::uint32_t mLedger
 
std::uint32_t mIndex
 
int mResult
 
std::optional< STAmountmDelivered
 
STArray mNodes
 

Detailed Description

Definition at line 32 of file TxMeta.h.

Constructor & Destructor Documentation

◆ TxMeta() [1/5]

template<class T >
ripple::TxMeta::TxMeta ( uint256 const &  txID,
std::uint32_t  ledger,
T const &  data,
CtorHelper   
)
private

Definition at line 30 of file TxMeta.cpp.

◆ TxMeta() [2/5]

ripple::TxMeta::TxMeta ( uint256 const &  transactionID,
std::uint32_t  ledger 
)

Definition at line 79 of file TxMeta.cpp.

◆ TxMeta() [3/5]

ripple::TxMeta::TxMeta ( uint256 const &  txID,
std::uint32_t  ledger,
Blob const &  vec 
)

Definition at line 66 of file TxMeta.cpp.

◆ TxMeta() [4/5]

ripple::TxMeta::TxMeta ( uint256 const &  txID,
std::uint32_t  ledger,
std::string const &  data 
)

Definition at line 71 of file TxMeta.cpp.

◆ TxMeta() [5/5]

ripple::TxMeta::TxMeta ( uint256 const &  txID,
std::uint32_t  ledger,
STObject const &  obj 
)

Definition at line 48 of file TxMeta.cpp.

Member Function Documentation

◆ getTxID()

uint256 const& ripple::TxMeta::getTxID ( ) const

Definition at line 53 of file TxMeta.h.

◆ getLgrSeq()

std::uint32_t ripple::TxMeta::getLgrSeq ( ) const

Definition at line 58 of file TxMeta.h.

◆ getResult()

int ripple::TxMeta::getResult ( ) const

Definition at line 63 of file TxMeta.h.

◆ getResultTER()

TER ripple::TxMeta::getResultTER ( ) const

Definition at line 68 of file TxMeta.h.

◆ getIndex()

std::uint32_t ripple::TxMeta::getIndex ( ) const

Definition at line 73 of file TxMeta.h.

◆ setAffectedNode()

void ripple::TxMeta::setAffectedNode ( uint256 const &  node,
SField const &  type,
std::uint16_t  nodeType 
)

Definition at line 90 of file TxMeta.cpp.

◆ getAffectedNode() [1/2]

STObject & ripple::TxMeta::getAffectedNode ( SLE::ref  node,
SField const &  type 
)

Definition at line 167 of file TxMeta.cpp.

◆ getAffectedNode() [2/2]

STObject & ripple::TxMeta::getAffectedNode ( uint256 const &  node)

Definition at line 186 of file TxMeta.cpp.

◆ getAffectedAccounts()

boost::container::flat_set< AccountID > ripple::TxMeta::getAffectedAccounts ( ) const

Return a list of accounts affected by this transaction.

Definition at line 115 of file TxMeta.cpp.

◆ getJson()

Json::Value ripple::TxMeta::getJson ( JsonOptions  p) const

Definition at line 90 of file TxMeta.h.

◆ addRaw()

void ripple::TxMeta::addRaw ( Serializer s,
TER  result,
std::uint32_t  index 
)

Definition at line 212 of file TxMeta.cpp.

◆ getAsObject()

STObject ripple::TxMeta::getAsObject ( ) const

Definition at line 199 of file TxMeta.cpp.

◆ getNodes() [1/2]

STArray& ripple::TxMeta::getNodes ( )

Definition at line 100 of file TxMeta.h.

◆ getNodes() [2/2]

STArray const& ripple::TxMeta::getNodes ( ) const

Definition at line 105 of file TxMeta.h.

◆ setDeliveredAmount()

void ripple::TxMeta::setDeliveredAmount ( STAmount const &  delivered)

Definition at line 111 of file TxMeta.h.

◆ getDeliveredAmount()

STAmount ripple::TxMeta::getDeliveredAmount ( ) const

Definition at line 117 of file TxMeta.h.

◆ hasDeliveredAmount()

bool ripple::TxMeta::hasDeliveredAmount ( ) const

Definition at line 124 of file TxMeta.h.

Member Data Documentation

◆ mTransactionID

uint256 ripple::TxMeta::mTransactionID
private

Definition at line 130 of file TxMeta.h.

◆ mLedger

std::uint32_t ripple::TxMeta::mLedger
private

Definition at line 131 of file TxMeta.h.

◆ mIndex

std::uint32_t ripple::TxMeta::mIndex
private

Definition at line 132 of file TxMeta.h.

◆ mResult

int ripple::TxMeta::mResult
private

Definition at line 133 of file TxMeta.h.

◆ mDelivered

std::optional<STAmount> ripple::TxMeta::mDelivered
private

Definition at line 135 of file TxMeta.h.

◆ mNodes

STArray ripple::TxMeta::mNodes
private

Definition at line 137 of file TxMeta.h.