proxygen
folly::gen::detail::Sub< Sink > Class Template Reference

#include <Parallel-inl.h>

Inheritance diagram for folly::gen::detail::Sub< Sink >:
folly::gen::Operator< Sub< Sink > > folly::gen::FBounded< Self >

Public Member Functions

 Sub (Sink sink)
 
template<class Value , class Source , class Result = decltype(std::declval<Sink>().compose(std::declval<Source>())), class Just = SingleCopy<typename std::decay<Result>::type>>
Just compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::Operator< Sub< Sink > >
ResultGen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Private Attributes

Sink sink_
 

Additional Inherited Members

- Protected Member Functions inherited from folly::gen::Operator< Sub< Sink > >
 Operator ()=default
 
 Operator (Operator &&) noexcept=default
 
 Operator (const Operator &)=default
 
Operatoroperator= (Operator &&) noexcept=default
 
Operatoroperator= (const Operator &)=default
 

Detailed Description

template<class Sink>
class folly::gen::detail::Sub< Sink >

Definition at line 133 of file Parallel-inl.h.

Constructor & Destructor Documentation

template<class Sink >
folly::gen::detail::Sub< Sink >::Sub ( Sink  sink)
inlineexplicit

Definition at line 137 of file Parallel-inl.h.

References testing::Value().

137 : sink_(sink) {}

Member Function Documentation

template<class Sink >
template<class Value , class Source , class Result = decltype(std::declval<Sink>().compose(std::declval<Source>())), class Just = SingleCopy<typename std::decay<Result>::type>>
Just folly::gen::detail::Sub< Sink >::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 145 of file Parallel-inl.h.

145  {
146  return Just(source | sink_);
147  }

Member Data Documentation

template<class Sink >
Sink folly::gen::detail::Sub< Sink >::sink_
private

Definition at line 134 of file Parallel-inl.h.


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