proxygen
folly::gen::detail::Concat Class Reference

#include <Base-inl.h>

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

Classes

class  Generator
 

Public Member Functions

 Concat ()=default
 
template<class Value , class Source , class Gen = Generator<Value, Source>>
Gen compose (GenImpl< Value, Source > &&source) const
 
template<class Value , class Source , class Gen = Generator<Value, Source>>
Gen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::Operator< Concat >
ResultGen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Additional Inherited Members

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

Detailed Description

Concat - For flattening generators of generators.

This type is usually used through the 'concat' static value, like:

auto edges = from(nodes) | map([](Node& x) { return from(x.neighbors) | map([&](Node& y) { return Edge(x, y); }); }) | concat | as<std::set>();

Definition at line 1618 of file Base-inl.h.

Constructor & Destructor Documentation

folly::gen::detail::Concat::Concat ( )
default

Member Function Documentation

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

Definition at line 1656 of file Base-inl.h.

References folly::gen::move.

1656  {
1657  return Gen(std::move(source.self()));
1658  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
template<class Value , class Source , class Gen = Generator<Value, Source>>
Gen folly::gen::detail::Concat::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 1661 of file Base-inl.h.

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

1661  {
1662  return Gen(source.self());
1663  }

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