Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
data::TransactionsCursor Struct Reference

Represents a cursor into the transactions table. More...

#include <Types.hpp>

Public Member Functions

 TransactionsCursor (std::uint32_t ledgerSequence, std::uint32_t transactionIndex)
 Construct a new Transactions Cursor object.
 
 TransactionsCursor (std::tuple< std::uint32_t, std::uint32_t > data)
 Construct a new Transactions Cursor object.
 
bool operator== (TransactionsCursor const &other) const =default
 
std::tuple< std::uint32_t, std::uint32_t > asTuple () const
 Convert the cursor to a tuple of seq and index.
 

Public Attributes

std::uint32_t ledgerSequence = 0
 
std::uint32_t transactionIndex = 0
 

Detailed Description

Represents a cursor into the transactions table.

Constructor & Destructor Documentation

◆ TransactionsCursor() [1/2]

data::TransactionsCursor::TransactionsCursor ( std::uint32_t ledgerSequence,
std::uint32_t transactionIndex )
inline

Construct a new Transactions Cursor object.

Parameters
ledgerSequenceThe ledger sequence
transactionIndexThe transaction index

◆ TransactionsCursor() [2/2]

data::TransactionsCursor::TransactionsCursor ( std::tuple< std::uint32_t, std::uint32_t > data)
inline

Construct a new Transactions Cursor object.

Parameters
dataThe data to construct from

Member Function Documentation

◆ asTuple()

std::tuple< std::uint32_t, std::uint32_t > data::TransactionsCursor::asTuple ( ) const
inlinenodiscard

Convert the cursor to a tuple of seq and index.

Returns
The cursor as a tuple

The documentation for this struct was generated from the following file: