proxygen
folly::gen::detail::Concat::Generator< Inner, Source, InnerValue > Class Template Reference

#include <Base-inl.h>

Inheritance diagram for folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >:
folly::gen::GenImpl< InnerValue, Generator< Inner, Source, InnerValue > > folly::gen::FBounded< Self >

Public Member Functions

 Generator (Source source)
 
template<class Handler >
bool apply (Handler &&handler) const
 
template<class Body >
void foreach (Body &&body) const
 
- Public Member Functions inherited from folly::gen::GenImpl< InnerValue, Generator< Inner, Source, InnerValue > >
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
 
- Static Public Attributes inherited from folly::gen::GenImpl< InnerValue, Generator< Inner, Source, InnerValue > >
static constexpr bool infinite
 

Private Attributes

Source source_
 

Additional Inherited Members

- Public Types inherited from folly::gen::GenImpl< InnerValue, Generator< Inner, Source, InnerValue > >
typedef InnerValue ValueType
 
typedef std::decay< InnerValue >::type StorageType
 
- Protected Member Functions inherited from folly::gen::GenImpl< InnerValue, Generator< Inner, Source, InnerValue > >
 GenImpl ()=default
 
 GenImpl (GenImpl &&)=default
 
 GenImpl (const GenImpl &)=default
 
GenImploperator= (GenImpl &&)=default
 
GenImploperator= (const GenImpl &)=default
 

Detailed Description

template<class Inner, class Source, class InnerValue = typename std::decay<Inner>::type::ValueType>
class folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >

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

Constructor & Destructor Documentation

template<class Inner , class Source , class InnerValue = typename std::decay<Inner>::type::ValueType>
folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::Generator ( Source  source)
inlineexplicit

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

1631 : source_(std::move(source)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

template<class Inner , class Source , class InnerValue = typename std::decay<Inner>::type::ValueType>
template<class Handler >
bool folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::apply ( Handler &&  handler) const
inline

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

References handler().

1634  {
1635  return source_.apply([&](Inner inner) -> bool {
1636  return inner.apply(std::forward<Handler>(handler));
1637  });
1638  }
void handler(int, siginfo_t *, void *)
template<class Inner , class Source , class InnerValue = typename std::decay<Inner>::type::ValueType>
template<class Body >
void folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::foreach ( Body &&  body) const
inline

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

1641  {
1642  source_.foreach(
1643  [&](Inner inner) { inner.foreach(std::forward<Body>(body)); });
1644  }

Member Data Documentation

template<class Inner , class Source , class InnerValue = typename std::decay<Inner>::type::ValueType>
constexpr bool folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::infinite
static
Initial value:
=
Source::infinite || std::decay<Inner>::type::infinite

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

template<class Inner , class Source , class InnerValue = typename std::decay<Inner>::type::ValueType>
Source folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::source_
private

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


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