proxygen
folly::gen::detail::Zip< Container > Class Template Reference

#include <Combine-inl.h>

Inheritance diagram for folly::gen::detail::Zip< Container >:
folly::gen::Operator< Zip< Container > > folly::gen::FBounded< Self >

Classes

class  Generator
 

Public Member Functions

 Zip (Container container)
 
template<class Source , class Value , class Gen = Generator<Value, Source>>
Gen compose (GenImpl< Value, Source > &&source) const
 
template<class Source , class Value , class Gen = Generator<Value, Source>>
Gen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::Operator< Zip< Container > >
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

const std::shared_ptr< const Container > container_
 

Additional Inherited Members

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

Detailed Description

template<class Container>
class folly::gen::detail::Zip< Container >

Zip

Combine inputs from Source with values from a sequence container by merging them into a tuple.

Definition at line 99 of file Combine-inl.h.

Constructor & Destructor Documentation

template<class Container >
folly::gen::detail::Zip< Container >::Zip ( Container  container)
inlineexplicit

Definition at line 104 of file Combine-inl.h.

References folly::test::begin(), and type.

105  : container_(new Container(std::move(container))) {}
const std::shared_ptr< const Container > container_
Definition: Combine-inl.h:101
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class Container >
template<class Source , class Value , class Gen = Generator<Value, Source>>
Gen folly::gen::detail::Zip< Container >::compose ( GenImpl< Value, Source > &&  source) const
inline

Definition at line 142 of file Combine-inl.h.

References folly::gen::detail::Interleave< Container >::Generator< Value, Source >::container_, and folly::gen::move.

142  {
143  return Gen(std::move(source.self()), container_);
144  }
const std::shared_ptr< const Container > container_
Definition: Combine-inl.h:101
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class Container >
template<class Source , class Value , class Gen = Generator<Value, Source>>
Gen folly::gen::detail::Zip< Container >::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 147 of file Combine-inl.h.

References folly::gen::detail::Interleave< Container >::Generator< Value, Source >::container_, and folly::gen::FBounded< Self >::self().

147  {
148  return Gen(source.self(), container_);
149  }
const std::shared_ptr< const Container > container_
Definition: Combine-inl.h:101

Member Data Documentation

template<class Container >
const std::shared_ptr<const Container> folly::gen::detail::Zip< Container >::container_
private

Definition at line 101 of file Combine-inl.h.


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