proxygen
folly::gen::detail::RangeConcat Class Reference

#include <Base-inl.h>

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

Classes

class  Generator
 

Public Member Functions

 RangeConcat ()=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< RangeConcat >
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< RangeConcat >
 Operator ()=default
 
 Operator (Operator &&) noexcept=default
 
 Operator (const Operator &)=default
 
Operatoroperator= (Operator &&) noexcept=default
 
Operatoroperator= (const Operator &)=default
 

Detailed Description

RangeConcat - For flattening generators of iterables.

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

map<int, vector<int>> adjacency; auto sinks = from(adjacency) | get<1>() | rconcat() | as<std::set>();

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

Constructor & Destructor Documentation

folly::gen::detail::RangeConcat::RangeConcat ( )
default

Member Function Documentation

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

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

References folly::gen::move.

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

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

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

1725  {
1726  return Gen(source.self());
1727  }

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