proxygen
|
#include <Base-inl.h>
Public Member Functions | |
Sequence (Value start, SequenceImpl impl) | |
template<class Handler > | |
bool | apply (Handler &&handler) const |
template<class Body > | |
void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::GenImpl< const Value &, Sequence< Value, SequenceImpl > > | |
bool | apply (Handler &&handler) const |
void | foreach (Body &&body) const |
Public Member Functions inherited from folly::gen::FBounded< Self > | |
const Self & | self () const |
Self & | self () |
Static Public Attributes | |
static constexpr bool | infinite = SequenceImpl::infinite |
Static Public Attributes inherited from folly::gen::GenImpl< const Value &, Sequence< Value, SequenceImpl > > | |
static constexpr bool | infinite |
Private Attributes | |
Value | start_ |
SequenceImpl | impl_ |
Additional Inherited Members | |
Public Types inherited from folly::gen::GenImpl< const Value &, Sequence< Value, SequenceImpl > > | |
typedef const Value & | ValueType |
typedef std::decay< const Value & >::type | StorageType |
Protected Member Functions inherited from folly::gen::GenImpl< const Value &, Sequence< Value, SequenceImpl > > | |
GenImpl ()=default | |
GenImpl (GenImpl &&)=default | |
GenImpl (const GenImpl &)=default | |
GenImpl & | operator= (GenImpl &&)=default |
GenImpl & | operator= (const GenImpl &)=default |
Sequence - For generating values from beginning value, incremented along the way with the ++ and += operators. Iteration may continue indefinitely. Value type specified explicitly.
This type is primarily used through the 'seq' and 'range' function, like:
int total = seq(1, 10) | sum; auto indexes = range(0, 10); auto endless = seq(0); // 0, 1, 2, 3, ...
Definition at line 279 of file Base-inl.h.
|
inlineexplicit |
Definition at line 287 of file Base-inl.h.
|
inline |
|
inline |
|
private |
Definition at line 284 of file Base-inl.h.
|
static |
Definition at line 308 of file Base-inl.h.
|
private |
Definition at line 282 of file Base-inl.h.