rippled
Public Member Functions | Public Attributes | List of all members
ripple::test::csf::CollectByNode< CollectorType > Struct Template Reference

Maintain an instance of a Collector per peer. More...

Collaboration diagram for ripple::test::csf::CollectByNode< CollectorType >:
Collaboration graph
[legend]

Public Member Functions

CollectorType & operator[] (PeerID who)
 
CollectorType const & operator[] (PeerID who) const
 
template<class E >
void on (PeerID who, SimTime when, E const &e)
 

Public Attributes

std::map< PeerID, CollectorType > byNode
 

Detailed Description

template<class CollectorType>
struct ripple::test::csf::CollectByNode< CollectorType >

Maintain an instance of a Collector per peer.

For each peer that emits events, this class maintains a corresponding instance of CollectorType, only forwarding events emitted by the peer to the related instance.

CollectorType should be default constructible.

Definition at line 110 of file collectors.h.

Member Function Documentation

◆ operator[]() [1/2]

template<class CollectorType >
CollectorType& ripple::test::csf::CollectByNode< CollectorType >::operator[] ( PeerID  who)

Definition at line 115 of file collectors.h.

◆ operator[]() [2/2]

template<class CollectorType >
CollectorType const& ripple::test::csf::CollectByNode< CollectorType >::operator[] ( PeerID  who) const

Definition at line 121 of file collectors.h.

◆ on()

template<class CollectorType >
template<class E >
void ripple::test::csf::CollectByNode< CollectorType >::on ( PeerID  who,
SimTime  when,
E const &  e 
)

Definition at line 127 of file collectors.h.

Member Data Documentation

◆ byNode

template<class CollectorType >
std::map<PeerID, CollectorType> ripple::test::csf::CollectByNode< CollectorType >::byNode

Definition at line 112 of file collectors.h.