proxygen
folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory > Class Template Reference

#include <time_source.h>

Public Member Functions

 time_source_executor_factory_fn (std::shared_ptr< time_source_shared< E, time_point >> source, NF nf, ExecutorFactory ef)
 
auto operator() ()
 

Private Types

using time_point = std::decay_t< TP >
 

Private Attributes

std::shared_ptr< time_source_shared< E, time_point > > source_
 
NF nf_
 
ExecutorFactory ef_
 

Detailed Description

template<class E, class TP, class NF, class ExecutorFactory>
class folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >

Definition at line 484 of file time_source.h.

Member Typedef Documentation

template<class E , class TP , class NF , class ExecutorFactory >
using folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::time_point = std::decay_t<TP>
private

Definition at line 485 of file time_source.h.

Constructor & Destructor Documentation

template<class E , class TP , class NF , class ExecutorFactory >
folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::time_source_executor_factory_fn ( std::shared_ptr< time_source_shared< E, time_point >>  source,
NF  nf,
ExecutorFactory  ef 
)
inline

Definition at line 491 of file time_source.h.

495  : source_(std::move(source)), nf_(std::move(nf)), ef_(std::move(ef)) {}
std::shared_ptr< time_source_shared< E, time_point > > source_
Definition: time_source.h:486
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class E , class TP , class NF , class ExecutorFactory >
auto folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::operator() ( )
inline

Definition at line 496 of file time_source.h.

References folly::gen::move.

496  {
497  auto ex = ef_();
498  auto queue =
499  std::make_shared<time_source_queue<E, time_point, NF, decltype(ex)>>(
500  source_, nf_, std::move(ex));
501  return time_source_executor<E, time_point, NF, decltype(ex)>{source_,
502  queue};
503  }
std::shared_ptr< time_source_shared< E, time_point > > source_
Definition: time_source.h:486
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<class E , class TP , class NF , class ExecutorFactory >
ExecutorFactory folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::ef_
private

Definition at line 488 of file time_source.h.

template<class E , class TP , class NF , class ExecutorFactory >
NF folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::nf_
private

Definition at line 487 of file time_source.h.

template<class E , class TP , class NF , class ExecutorFactory >
std::shared_ptr<time_source_shared<E, time_point> > folly::pushmi::time_source_executor_factory_fn< E, TP, NF, ExecutorFactory >::source_
private

Definition at line 486 of file time_source.h.


The documentation for this class was generated from the following file: