mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Reformatting using AStyle
This commit is contained in:
@@ -4,48 +4,78 @@
|
||||
class TransactionMetaSet
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<TransactionMetaSet> pointer;
|
||||
typedef const pointer& ref;
|
||||
typedef boost::shared_ptr<TransactionMetaSet> pointer;
|
||||
typedef const pointer& ref;
|
||||
|
||||
public:
|
||||
TransactionMetaSet() : mLedger(0), mIndex(static_cast<uint32>(-1)), mResult(255) { ; }
|
||||
TransactionMetaSet(uint256 const& txID, uint32 ledger, uint32 index) :
|
||||
mTransactionID(txID), mLedger(ledger), mIndex(static_cast<uint32>(-1)), mResult(255) { ; }
|
||||
TransactionMetaSet(uint256 const& txID, uint32 ledger, Blob const&);
|
||||
TransactionMetaSet () : mLedger (0), mIndex (static_cast<uint32> (-1)), mResult (255)
|
||||
{
|
||||
;
|
||||
}
|
||||
TransactionMetaSet (uint256 const& txID, uint32 ledger, uint32 index) :
|
||||
mTransactionID (txID), mLedger (ledger), mIndex (static_cast<uint32> (-1)), mResult (255)
|
||||
{
|
||||
;
|
||||
}
|
||||
TransactionMetaSet (uint256 const& txID, uint32 ledger, Blob const&);
|
||||
|
||||
void init(uint256 const& transactionID, uint32 ledger);
|
||||
void clear() { mNodes.clear(); }
|
||||
void swap(TransactionMetaSet&);
|
||||
void init (uint256 const& transactionID, uint32 ledger);
|
||||
void clear ()
|
||||
{
|
||||
mNodes.clear ();
|
||||
}
|
||||
void swap (TransactionMetaSet&);
|
||||
|
||||
uint256 const& getTxID() { return mTransactionID; }
|
||||
uint32 getLgrSeq() { return mLedger; }
|
||||
int getResult() const { return mResult; }
|
||||
TER getResultTER() const { return static_cast<TER>(mResult); }
|
||||
uint32 getIndex() const { return mIndex; }
|
||||
uint256 const& getTxID ()
|
||||
{
|
||||
return mTransactionID;
|
||||
}
|
||||
uint32 getLgrSeq ()
|
||||
{
|
||||
return mLedger;
|
||||
}
|
||||
int getResult () const
|
||||
{
|
||||
return mResult;
|
||||
}
|
||||
TER getResultTER () const
|
||||
{
|
||||
return static_cast<TER> (mResult);
|
||||
}
|
||||
uint32 getIndex () const
|
||||
{
|
||||
return mIndex;
|
||||
}
|
||||
|
||||
bool isNodeAffected(uint256 const& ) const;
|
||||
void setAffectedNode(uint256 const& , SField::ref type, uint16 nodeType);
|
||||
STObject& getAffectedNode(SLE::ref node, SField::ref type); // create if needed
|
||||
STObject& getAffectedNode(uint256 const& );
|
||||
const STObject& peekAffectedNode(uint256 const& ) const;
|
||||
std::vector<RippleAddress> getAffectedAccounts();
|
||||
bool isNodeAffected (uint256 const& ) const;
|
||||
void setAffectedNode (uint256 const& , SField::ref type, uint16 nodeType);
|
||||
STObject& getAffectedNode (SLE::ref node, SField::ref type); // create if needed
|
||||
STObject& getAffectedNode (uint256 const& );
|
||||
const STObject& peekAffectedNode (uint256 const& ) const;
|
||||
std::vector<RippleAddress> getAffectedAccounts ();
|
||||
|
||||
|
||||
Json::Value getJson(int p) const { return getAsObject().getJson(p); }
|
||||
void addRaw(Serializer&, TER, uint32 index);
|
||||
Json::Value getJson (int p) const
|
||||
{
|
||||
return getAsObject ().getJson (p);
|
||||
}
|
||||
void addRaw (Serializer&, TER, uint32 index);
|
||||
|
||||
STObject getAsObject() const;
|
||||
STArray& getNodes(){ return(mNodes); }
|
||||
STObject getAsObject () const;
|
||||
STArray& getNodes ()
|
||||
{
|
||||
return (mNodes);
|
||||
}
|
||||
|
||||
static bool thread(STObject& node, uint256 const& prevTxID, uint32 prevLgrID);
|
||||
static bool thread (STObject& node, uint256 const& prevTxID, uint32 prevLgrID);
|
||||
|
||||
private:
|
||||
uint256 mTransactionID;
|
||||
uint32 mLedger;
|
||||
uint32 mIndex;
|
||||
int mResult;
|
||||
uint256 mTransactionID;
|
||||
uint32 mLedger;
|
||||
uint32 mIndex;
|
||||
int mResult;
|
||||
|
||||
STArray mNodes;
|
||||
STArray mNodes;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user