xrpld
Loading...
Searching...
No Matches
xrpl::PeerFinder::SlotHandouts Class Reference

Receives endpoints for a slot during periodic handouts. More...

#include <Handouts.h>

Collaboration diagram for xrpl::PeerFinder::SlotHandouts:

Public Member Functions

template<class = void>
 SlotHandouts (SlotImp::ptr slot)
template<class = void>
bool tryInsert (Endpoint const &ep)
bool full () const
void insert (Endpoint const &ep)
SlotImp::ptr const & slot () const
std::vector< Endpoint > const & list () const

Private Attributes

SlotImp::ptr slot_
std::vector< Endpointlist_

Detailed Description

Receives endpoints for a slot during periodic handouts.

Definition at line 162 of file Handouts.h.

Constructor & Destructor Documentation

◆ SlotHandouts()

template<class>
xrpl::PeerFinder::SlotHandouts::SlotHandouts ( SlotImp::ptr slot)
explicit

Definition at line 202 of file Handouts.h.

Member Function Documentation

◆ tryInsert()

template<class>
bool xrpl::PeerFinder::SlotHandouts::tryInsert ( Endpoint const & ep)

Definition at line 209 of file Handouts.h.

◆ full()

bool xrpl::PeerFinder::SlotHandouts::full ( ) const
nodiscard

Definition at line 173 of file Handouts.h.

◆ insert()

void xrpl::PeerFinder::SlotHandouts::insert ( Endpoint const & ep)

Definition at line 179 of file Handouts.h.

◆ slot()

SlotImp::ptr const & xrpl::PeerFinder::SlotHandouts::slot ( ) const
nodiscard

Definition at line 185 of file Handouts.h.

◆ list()

std::vector< Endpoint > const & xrpl::PeerFinder::SlotHandouts::list ( ) const
nodiscard

Definition at line 191 of file Handouts.h.

Member Data Documentation

◆ slot_

SlotImp::ptr xrpl::PeerFinder::SlotHandouts::slot_
private

Definition at line 197 of file Handouts.h.

◆ list_

std::vector<Endpoint> xrpl::PeerFinder::SlotHandouts::list_
private

Definition at line 198 of file Handouts.h.