proxygen
folly::gen::detail::Dereference Class Reference

#include <Base-inl.h>

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

Classes

class  Generator
 

Public Member Functions

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

Detailed Description

Dereference - For dereferencing a sequence of pointers while filtering out null pointers.

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

auto refs = from(ptrs) | dereference;

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

Constructor & Destructor Documentation

folly::gen::detail::Dereference::Dereference ( )
default

Member Function Documentation

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

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

References folly::gen::move.

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

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

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

1847  {
1848  return Gen(source.self());
1849  }

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