proxygen
folly::gen::detail::Parallel< Ops > Class Template Reference

#include <Parallel-inl.h>

Inheritance diagram for folly::gen::detail::Parallel< Ops >:
folly::gen::Operator< Parallel< Ops > > folly::gen::FBounded< Self >

Classes

class  Generator
 

Public Member Functions

 Parallel (Ops ops, size_t threads)
 
template<class Value , class Source >
Generator< Value, Source > compose (const GenImpl< Value, Source > &source) const
 
template<class Value , class Source >
Generator< Value, Source > compose (GenImpl< Value, Source > &&source) const
 
- Public Member Functions inherited from folly::gen::Operator< Parallel< Ops > >
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

Ops ops_
 
size_t threads_
 

Additional Inherited Members

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

Detailed Description

template<class Ops>
class folly::gen::detail::Parallel< Ops >

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

Constructor & Destructor Documentation

template<class Ops >
folly::gen::detail::Parallel< Ops >::Parallel ( Ops  ops,
size_t  threads 
)
inline

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

References type.

constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
std::vector< std::thread::id > threads
const int ops

Member Function Documentation

template<class Ops >
template<class Value , class Source >
Generator<Value, Source> folly::gen::detail::Parallel< Ops >::compose ( const GenImpl< Value, Source > &  source) const
inline

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

References folly::gen::FBounded< Self >::self().

373  {
374  return Generator<Value, Source>(source.self(), ops_, threads_);
375  }
template<class Ops >
template<class Value , class Source >
Generator<Value, Source> folly::gen::detail::Parallel< Ops >::compose ( GenImpl< Value, Source > &&  source) const
inline

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

References folly::gen::move.

378  {
379  return Generator<Value, Source>(std::move(source.self()), ops_, threads_);
380  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Data Documentation

template<class Ops >
Ops folly::gen::detail::Parallel< Ops >::ops_
private

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

template<class Ops >
size_t folly::gen::detail::Parallel< Ops >::threads_
private

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


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