rippled
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::test::csf::Collectors< Cs > Class Template Reference

Group of collectors. More...

Collaboration diagram for ripple::test::csf::Collectors< Cs >:
Collaboration graph
[legend]

Public Member Functions

 Collectors (Cs &... cs_)
 Constructor. More...
 
template<class E >
void on (PeerID who, SimTime when, E e)
 

Static Private Member Functions

template<class C , class E >
static void apply (C &c, PeerID who, SimTime when, E e)
 
template<std::size_t... Is, class E >
static void apply (std::tuple< Cs &... > &cs, PeerID who, SimTime when, E e, std::index_sequence< Is... >)
 

Private Attributes

std::tuple< Cs &... > cs
 

Detailed Description

template<class... Cs>
class ripple::test::csf::Collectors< Cs >

Group of collectors.

Presents a group of collectors as a single collector which process an event by calling each collector sequentially. This is analagous to CollectorRefs in CollectorRef.h, but does not erase the type information of the combined collectors.

Definition at line 53 of file collectors.h.

Constructor & Destructor Documentation

◆ Collectors()

template<class... Cs>
ripple::test::csf::Collectors< Cs >::Collectors ( Cs &...  cs_)

Constructor.

Parameters
csReferences to the collectors to call together

Definition at line 81 of file collectors.h.

Member Function Documentation

◆ apply() [1/2]

template<class... Cs>
template<class C , class E >
static void ripple::test::csf::Collectors< Cs >::apply ( C &  c,
PeerID  who,
SimTime  when,
e 
)
staticprivate

Definition at line 59 of file collectors.h.

◆ apply() [2/2]

template<class... Cs>
template<std::size_t... Is, class E >
static void ripple::test::csf::Collectors< Cs >::apply ( std::tuple< Cs &... > &  cs,
PeerID  who,
SimTime  when,
e,
std::index_sequence< Is... >   
)
staticprivate

Definition at line 66 of file collectors.h.

◆ on()

template<class... Cs>
template<class E >
void ripple::test::csf::Collectors< Cs >::on ( PeerID  who,
SimTime  when,
e 
)

Definition at line 87 of file collectors.h.

Member Data Documentation

◆ cs

template<class... Cs>
std::tuple<Cs&...> ripple::test::csf::Collectors< Cs >::cs
private

Definition at line 55 of file collectors.h.