rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
xrpl::LocalTxsImp Class Reference
Inheritance diagram for xrpl::LocalTxsImp:
Inheritance graph
[legend]
Collaboration diagram for xrpl::LocalTxsImp:
Collaboration graph
[legend]

Public Member Functions

 LocalTxsImp ()=default
 
void push_back (LedgerIndex index, std::shared_ptr< STTx const > const &txn) override
 
CanonicalTXSet getTxSet () override
 
void sweep (ReadView const &view) override
 
std::size_t size () override
 

Static Public Attributes

static constexpr int holdLedgers = 5
 

Private Attributes

std::mutex m_lock
 
std::list< LocalTxm_txns
 

Detailed Description

Definition at line 88 of file LocalTxs.cpp.

Constructor & Destructor Documentation

◆ LocalTxsImp()

xrpl::LocalTxsImp::LocalTxsImp ( )
default

Member Function Documentation

◆ push_back()

void xrpl::LocalTxsImp::push_back ( LedgerIndex  index,
std::shared_ptr< STTx const > const &  txn 
)
overridevirtual

Implements xrpl::LocalTxs.

Definition at line 95 of file LocalTxs.cpp.

◆ getTxSet()

CanonicalTXSet xrpl::LocalTxsImp::getTxSet ( )
overridevirtual

Implements xrpl::LocalTxs.

Definition at line 103 of file LocalTxs.cpp.

◆ sweep()

void xrpl::LocalTxsImp::sweep ( ReadView const &  view)
overridevirtual

Implements xrpl::LocalTxs.

Definition at line 122 of file LocalTxs.cpp.

◆ size()

std::size_t xrpl::LocalTxsImp::size ( )
overridevirtual

Implements xrpl::LocalTxs.

Definition at line 157 of file LocalTxs.cpp.

Member Data Documentation

◆ m_lock

std::mutex xrpl::LocalTxsImp::m_lock
private

Definition at line 165 of file LocalTxs.cpp.

◆ m_txns

std::list<LocalTx> xrpl::LocalTxsImp::m_txns
private

Definition at line 166 of file LocalTxs.cpp.

◆ holdLedgers

constexpr int xrpl::LocalTxs::holdLedgers = 5
staticconstexprinherited

Definition at line 21 of file LocalTxs.h.