rippled
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::TxMeta Class Reference

#include <TxMeta.h>

Collaboration diagram for ripple::TxMeta:
Collaboration graph
[legend]

Classes

struct  CtorHelper
 

Public Member Functions

 TxMeta (uint256 const &transactionID, std::uint32_t ledger, std::optional< uint256 > parentBatchId=std::nullopt)
 
 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.
 
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
 
void setParentBatchId (uint256 const &parentBatchId)
 
uint256 getParentBatchId () const
 
bool hasParentBatchId () 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
 
std::optional< uint256mParentBatchId
 
STArray mNodes
 

Detailed Description

Definition at line 34 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 43 of file TxMeta.cpp.

◆ TxMeta() [2/5]

ripple::TxMeta::TxMeta ( uint256 const &  transactionID,
std::uint32_t  ledger,
std::optional< uint256 parentBatchId = std::nullopt 
)

Definition at line 100 of file TxMeta.cpp.

◆ TxMeta() [3/5]

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

Definition at line 87 of file TxMeta.cpp.

◆ TxMeta() [4/5]

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

Definition at line 92 of file TxMeta.cpp.

◆ TxMeta() [5/5]

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

Definition at line 64 of file TxMeta.cpp.

Member Function Documentation

◆ getTxID()

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

Definition at line 58 of file TxMeta.h.

◆ getLgrSeq()

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

Definition at line 63 of file TxMeta.h.

◆ getResult()

int ripple::TxMeta::getResult ( ) const

Definition at line 68 of file TxMeta.h.

◆ getResultTER()

TER ripple::TxMeta::getResultTER ( ) const

Definition at line 73 of file TxMeta.h.

◆ getIndex()

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

Definition at line 78 of file TxMeta.h.

◆ setAffectedNode()

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

Definition at line 115 of file TxMeta.cpp.

◆ getAffectedNode() [1/2]

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

Definition at line 213 of file TxMeta.cpp.

◆ getAffectedNode() [2/2]

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

Definition at line 234 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 142 of file TxMeta.cpp.

◆ getJson()

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

Definition at line 95 of file TxMeta.h.

◆ addRaw()

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

Definition at line 264 of file TxMeta.cpp.

◆ getAsObject()

STObject ripple::TxMeta::getAsObject ( ) const

Definition at line 247 of file TxMeta.cpp.

◆ getNodes() [1/2]

STArray & ripple::TxMeta::getNodes ( )

Definition at line 105 of file TxMeta.h.

◆ getNodes() [2/2]

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

Definition at line 110 of file TxMeta.h.

◆ setDeliveredAmount()

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

Definition at line 116 of file TxMeta.h.

◆ getDeliveredAmount()

STAmount ripple::TxMeta::getDeliveredAmount ( ) const

Definition at line 122 of file TxMeta.h.

◆ hasDeliveredAmount()

bool ripple::TxMeta::hasDeliveredAmount ( ) const

Definition at line 131 of file TxMeta.h.

◆ setParentBatchId()

void ripple::TxMeta::setParentBatchId ( uint256 const &  parentBatchId)

Definition at line 137 of file TxMeta.h.

◆ getParentBatchId()

uint256 ripple::TxMeta::getParentBatchId ( ) const

Definition at line 143 of file TxMeta.h.

◆ hasParentBatchId()

bool ripple::TxMeta::hasParentBatchId ( ) const

Definition at line 152 of file TxMeta.h.

Member Data Documentation

◆ mTransactionID

uint256 ripple::TxMeta::mTransactionID
private

Definition at line 158 of file TxMeta.h.

◆ mLedger

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

Definition at line 159 of file TxMeta.h.

◆ mIndex

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

Definition at line 160 of file TxMeta.h.

◆ mResult

int ripple::TxMeta::mResult
private

Definition at line 161 of file TxMeta.h.

◆ mDelivered

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

Definition at line 163 of file TxMeta.h.

◆ mParentBatchId

std::optional<uint256> ripple::TxMeta::mParentBatchId
private

Definition at line 164 of file TxMeta.h.

◆ mNodes

STArray ripple::TxMeta::mNodes
private

Definition at line 166 of file TxMeta.h.