proxygen
|
#include <Base-inl.h>
Public Types | |
typedef Container | ContainerType |
Public Types inherited from folly::gen::GenImpl< const StorageType &, CopiedSource< StorageType, Container > > | |
typedef const StorageType & | ValueType |
typedef std::decay< const StorageType & >::type | StorageType |
Public Member Functions | |
template<class SourceContainer > | |
CopiedSource (const SourceContainer &container) | |
CopiedSource (Container &&container) | |
CopiedSource (const CopiedSource< StorageType, Container > &source) | |
template<class Body > | |
void | foreach (Body &&body) const |
template<class Handler > | |
bool | apply (Handler &&handler) const |
Public Member Functions inherited from folly::gen::GenImpl< const StorageType &, CopiedSource< StorageType, Container > > | |
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 () |
Public Attributes | |
std::shared_ptr< const Container > | copy_ |
Static Public Attributes | |
static constexpr bool | infinite = false |
Static Public Attributes inherited from folly::gen::GenImpl< const StorageType &, CopiedSource< StorageType, Container > > | |
static constexpr bool | infinite |
Additional Inherited Members | |
Protected Member Functions inherited from folly::gen::GenImpl< const StorageType &, CopiedSource< StorageType, Container > > | |
GenImpl ()=default | |
GenImpl (GenImpl &&)=default | |
GenImpl (const GenImpl &)=default | |
GenImpl & | operator= (GenImpl &&)=default |
GenImpl & | operator= (const GenImpl &)=default |
CopiedSource - For producing values from eagerly from a sequence of values whose storage is owned by this class. Useful for preparing a generator for use after a source collection will no longer be available, or for when the values are specified literally with an initializer list.
This type is primarily used through the 'fromCopy' function, like:
auto sourceCopy = fromCopy(makeAVector()); auto sum = sourceCopy | sum; auto max = sourceCopy | max;
Though it is also used for the initializer_list specialization of from().
Definition at line 172 of file Base-inl.h.
typedef Container folly::gen::detail::CopiedSource< StorageType, Container >::ContainerType |
Definition at line 190 of file Base-inl.h.
|
inlineexplicit |
Definition at line 193 of file Base-inl.h.
|
inlineexplicit |
Definition at line 196 of file Base-inl.h.
|
inline |
Definition at line 200 of file Base-inl.h.
|
inline |
Definition at line 211 of file Base-inl.h.
References handler(), and value.
|
inline |
Definition at line 204 of file Base-inl.h.
References value.
std::shared_ptr<const Container> folly::gen::detail::CopiedSource< StorageType, Container >::copy_ |
Definition at line 176 of file Base-inl.h.
|
static |
Definition at line 222 of file Base-inl.h.