xrpld
Loading...
Searching...
No Matches
xrpl::TOfferStreamBase< TIn, TOut >::StepCounter Class Reference

#include <OfferStream.h>

Collaboration diagram for xrpl::TOfferStreamBase< TIn, TOut >::StepCounter:

Public Member Functions

 StepCounter (std::uint32_t limit, beast::Journal j)
bool step ()
std::uint32_t count () const

Private Attributes

std::uint32_t const limit_
std::uint32_t count_ {0}
beast::Journal j_

Detailed Description

template<StepAmount TIn, StepAmount TOut>
class xrpl::TOfferStreamBase< TIn, TOut >::StepCounter

Definition at line 19 of file OfferStream.h.

Constructor & Destructor Documentation

◆ StepCounter()

template<StepAmount TIn, StepAmount TOut>
xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::StepCounter ( std::uint32_t limit,
beast::Journal j )

Definition at line 27 of file OfferStream.h.

Member Function Documentation

◆ step()

template<StepAmount TIn, StepAmount TOut>
bool xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::step ( )

Definition at line 32 of file OfferStream.h.

◆ count()

template<StepAmount TIn, StepAmount TOut>
std::uint32_t xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::count ( ) const
nodiscard

Definition at line 43 of file OfferStream.h.

Member Data Documentation

◆ limit_

template<StepAmount TIn, StepAmount TOut>
std::uint32_t const xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::limit_
private

Definition at line 22 of file OfferStream.h.

◆ count_

template<StepAmount TIn, StepAmount TOut>
std::uint32_t xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::count_ {0}
private

Definition at line 23 of file OfferStream.h.

◆ j_

template<StepAmount TIn, StepAmount TOut>
beast::Journal xrpl::TOfferStreamBase< TIn, TOut >::StepCounter::j_
private

Definition at line 24 of file OfferStream.h.