rippled
Public Types | Public Member Functions | Public Attributes | List of all members
ripple::send_if_not_pred< Predicate > Struct Template Reference

Sends a message to non-matching peers. More...

Collaboration diagram for ripple::send_if_not_pred< Predicate >:
Collaboration graph
[legend]

Public Types

using return_type = void
 

Public Member Functions

 send_if_not_pred (std::shared_ptr< Message > const &m, Predicate const &p)
 
void operator() (std::shared_ptr< Peer > const &peer) const
 

Public Attributes

std::shared_ptr< Message > const & msg
 
Predicate const & predicate
 

Detailed Description

template<typename Predicate>
struct ripple::send_if_not_pred< Predicate >

Sends a message to non-matching peers.

Definition at line 84 of file predicates.h.

Member Typedef Documentation

◆ return_type

template<typename Predicate >
using ripple::send_if_not_pred< Predicate >::return_type = void

Definition at line 86 of file predicates.h.

Constructor & Destructor Documentation

◆ send_if_not_pred()

template<typename Predicate >
ripple::send_if_not_pred< Predicate >::send_if_not_pred ( std::shared_ptr< Message > const &  m,
Predicate const &  p 
)

Definition at line 91 of file predicates.h.

Member Function Documentation

◆ operator()()

template<typename Predicate >
void ripple::send_if_not_pred< Predicate >::operator() ( std::shared_ptr< Peer > const &  peer) const

Definition at line 97 of file predicates.h.

Member Data Documentation

◆ msg

template<typename Predicate >
std::shared_ptr<Message> const& ripple::send_if_not_pred< Predicate >::msg

Definition at line 88 of file predicates.h.

◆ predicate

template<typename Predicate >
Predicate const& ripple::send_if_not_pred< Predicate >::predicate

Definition at line 89 of file predicates.h.