proxygen
|
#include <Base-inl.h>
Classes | |
class | Generator |
Public Member Functions | |
Visit ()=default | |
Visit (Visitor visitor) | |
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< Visit< Visitor > > | |
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 | |
Visitor | visitor_ |
Additional Inherited Members | |
Protected Member Functions inherited from folly::gen::Operator< Visit< Visitor > > | |
Operator ()=default | |
Operator (Operator &&) noexcept=default | |
Operator (const Operator &)=default | |
Operator & | operator= (Operator &&) noexcept=default |
Operator & | operator= (const Operator &)=default |
Visit - For calling a function on each item before passing it down the pipeline.
This type is usually used through the 'visit' helper function:
auto printedValues = seq(1) | visit(debugPrint); // nothing printed yet auto results = take(10) | as<std::vector>(); // results now populated, 10 values printed
Definition at line 752 of file Base-inl.h.
|
default |
|
inlineexplicit |
Definition at line 758 of file Base-inl.h.
|
inline |
|
inline |
|
private |
Definition at line 753 of file Base-inl.h.