proxygen
folly::gen::detail::Indirect Class Reference

#include <Base-inl.h>

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

Classes

class  Generator
 

Public Member Functions

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

Detailed Description

Indirect - For producing a sequence of the addresses of the values in the input.

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

auto ptrs = from(refs) | indirect;

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

Constructor & Destructor Documentation

folly::gen::detail::Indirect::Indirect ( )
default

Member Function Documentation

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

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

References folly::gen::move.

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

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

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

1900  {
1901  return Gen(source.self());
1902  }

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