xrpld
Loading...
Searching...
No Matches
xrpl::PeerInSet Struct Reference

Select all peers that are in the specified set. More...

#include <predicates.h>

Collaboration diagram for xrpl::PeerInSet:

Public Member Functions

 PeerInSet (std::set< Peer::id_t > const &peers)
bool operator() (std::shared_ptr< Peer > const &peer) const

Public Attributes

std::set< Peer::id_t > const & peerSet

Detailed Description

Select all peers that are in the specified set.

Definition at line 135 of file predicates.h.

Constructor & Destructor Documentation

◆ PeerInSet()

xrpl::PeerInSet::PeerInSet ( std::set< Peer::id_t > const & peers)

Definition at line 139 of file predicates.h.

Member Function Documentation

◆ operator()()

bool xrpl::PeerInSet::operator() ( std::shared_ptr< Peer > const & peer) const

Definition at line 144 of file predicates.h.

Member Data Documentation

◆ peerSet

std::set<Peer::id_t> const& xrpl::PeerInSet::peerSet

Definition at line 137 of file predicates.h.